com.ibm.security.certclient.fmt

Class PkCmpEventFormatter

  1. java.lang.Object
  2. extended bycom.ibm.security.certclient.base.PkEventFormatter
  3. extended bycom.ibm.security.certclient.fmt.PkCmpEventFormatter
All implemented interfaces:
PkAttrKind, PkCertConstants, PkConstants, PkHttpConstants, PkPollConstants, PkRevoConstants
Direct known subclasses:
PkTcpV10CmpEventFormatter

  1. public class PkCmpEventFormatter
  2. extends PkEventFormatter
  3. implements PkConstants
This class builds events from their DER-encoded CMP representation and writes events to their DER-encoded CMP representations.
Author:
Krishna Yellepeddy , Eric Storch

Field Summary

Fields inherited from interface com.ibm.security.certclient.base.PkConstants
BIG_ONE, BIG_TWO, PKI_DB_CONN, PKI_DB_CONNS, PKI_ISSUER_DN, PKI_ISSUER_HOST, PKI_ISSUER_PORT, PKI_OPER, PKI_ROOT
Fields inherited from interface com.ibm.security.certclient.base.PkAttrKind
ATTR_APPLIED, ATTR_APPROVED, ATTR_NAMES
Fields inherited from interface com.ibm.security.certclient.base.PkCertConstants
CERT_ALGORITHM_ID, CERT_ALGORITHM_NAME, CERT_ALTERNATIVE_NAME, CERT_AUTH_KEY_IDENTIFIER, CERT_BASIC_CONSTRAINTS, CERT_CA_PUBS, CERT_CA_VENDOR, CERT_CMP_VERSION, CERT_CRL_DISTRIBUTION_POINTS, CERT_EXT, CERT_EXT_KEY_USAGE, CERT_HIERARCHICAL, CERT_INIT_PWD, CERT_ISSUER, CERT_ISSUER_ID, CERT_KEY, CERT_KEY_IDENTIFIER, CERT_KEY_TYPE, CERT_KEY_USAGE, CERT_MESSAGE_PROTECTED, CERT_MESSAGE_PROTECTION_ALGORITHM_ID, CERT_MESSAGE_PROTECTION_ALGORITHM_NAME, CERT_MESSAGE_PROTECTION_KEY, CERT_MESSAGE_PROTECTION_PWD, CERT_NAME_CONSTRAINTS, CERT_NETSCAPE_CERT_TYPE, CERT_NOT_AFTER, CERT_NOT_BEFORE, CERT_OPER, CERT_OUTFILENAME, CERT_POLICY_CONSTRAINTS, CERT_POLICY_MAPPINGS, CERT_PRIVATE_KEY, CERT_PRIVATE_KEY_EE, CERT_PRIVATE_KEY_USAGE, CERT_PROVIDER, CERT_PUBLISH_IMMEDIATELY, CERT_RECIPIENT_DN, CERT_REP_HDR, CERT_REQ_ID, CERT_REVO_PUBLIC_KEY, CERT_REVOCATION_PASSPHRASE, CERT_ROOT, CERT_SENDER_KID, CERT_SERIAL_NUMBER, CERT_SUBJECT, CERT_SUBJECT_ALTERNATIVE_NAME, CERT_SUBJECT_ID, CERT_TIME_TO_CHECK_BACK, CERT_VENDOR_TPKI_RA_ENROLL, CERT_VERSION, CERT_VERSION_1, CERT_VERSION_2, CERT_VERSION_3, CERT_X509, KEY_STORE_CERT_ALIAS, KEY_STORE_ENTRY_PWD, KEY_STORE_INIT_CERT_ALIAS, KEY_STORE_INIT_ENTRY_PWD, MAKE_CONF_REQUEST_MESSAGE, MAX_SUBJECT_NAME_LENGTH_TO_STORE_IN_TABLES
Fields inherited from interface com.ibm.security.certclient.base.PkRevoConstants
REVO_BAD_SINCE_DATE, REVO_CRL_EXT, REVO_OPER, REVO_PUBLISH_IMMEDIATELY, REVO_REASON, REVO_ROOT
Fields inherited from interface com.ibm.security.certclient.base.PkHttpConstants
HTTP_BASE_NAME, HTTP_FILE_NAME, HTTP_METHOD, HTTP_ROOT, HTTP_VERSION
Fields inherited from interface com.ibm.security.certclient.base.PkPollConstants
POLL_REFERENCE, POLL_ROOT, POLL_TIME_TO_CHECK_BACK

Constructor Summary

Constructor and Description
PkCmpEventFormatter()

Method Summary

Modifier and Type Method and Description
  1. PkEvent
readEvent(Object source,InputStream is,PkReqEvent req)
  1. void
writeCertRep(PkCertRepEvent rep,OutputStream out)
  1. void
writeCertReq(PkCertReqEvent req,OutputStream out)
  1. void
writeConfRep(PkConfRepEvent rep,OutputStream out)
  1. void
writeConfReq(PkConfReqEvent req,OutputStream out)
  1. void
writeException(Exception e,OutputStream out)
  1. void
writeRevoRep(PkRevoRepEvent rep,OutputStream out)
  1. void
writeRevoReq(PkRevoReqEvent req,OutputStream out)
  1. void
writeSecnRep(PkCertRepEvent rep,OutputStream out)
  1. void
writeSecnReq(PkSecnReqEvent req,OutputStream out)
  1. void
writeXcerRep(PkXcerRepEvent rep,OutputStream out)
  1. void
writeXcerReq(PkXcerReqEvent req,OutputStream out)
Methods inherited from class com.ibm.security.certclient.base.PkEventFormatter
writeEvent, writeGnrlRep, writeGnrlReq, writeHttpRep, writeHttpReq, writeInitRep, writeInitReq, writeKrecRep, writeKrecReq, writeKupdRep, writeKupdReq, writePollReq, writeRep, writeReq, writeSecnRep
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

PkCmpEventFormatter

  1. public PkCmpEventFormatter()

Method Detail

readEvent

  1. public PkEvent readEvent(Object source,
  2. InputStream is,
  3. PkReqEvent req)
  4. throws PkException
  5. IOException
Description copied from class: PkEventFormatter
Returns a new instance of a subclass of PkEvent by reading it from an inputStream. This is a factory method.
Specified by:
Parameters:
source - The instance that creates the event. Usually this.
is - The inputstream from which the event is read.
req - The request that generated the corresponding reply. This parameter can be null when readEvent is expected to return a PkReqevent.
Throws:

writeException

  1. public void writeException(Exception e,
  2. OutputStream out)
  3. throws IOException
Description copied from class: PkEventFormatter
Writes the exception e to the ouputStream
Specified by:
Parameters:
e - The exception to write.
out - The output stream where the exception will be written.
Throws:

writeCertReq

  1. public void writeCertReq(PkCertReqEvent req,
  2. OutputStream out)
  3. throws IOException
  4. PkException
Description copied from class: PkEventFormatter
Writes a PkCertReqEvent to the outputStream.

This implementation simply invokes the writeReq method.

Overrides:
Throws:

writeSecnReq

  1. public void writeSecnReq(PkSecnReqEvent req,
  2. OutputStream out)
  3. throws IOException
  4. PkException
Description copied from class: PkEventFormatter
Writes a PkSecnReqEvent to the outputStream.

This implementation simply invokes the writeCertReq method.

Overrides:
Throws:

writeXcerReq

  1. public void writeXcerReq(PkXcerReqEvent req,
  2. OutputStream out)
  3. throws IOException
  4. PkException
Description copied from class: PkEventFormatter
Writes a PkXcerReqEvent to the outputStream.

This implementation simply invokes the writeCertReq method.

Overrides:
Throws:

writeCertRep

  1. public void writeCertRep(PkCertRepEvent rep,
  2. OutputStream out)
  3. throws IOException
  4. PkException
Description copied from class: PkEventFormatter
Writes a PkCertRepEvent to the outputStream.

This implementation simply invokes the writeRep method.

Overrides:
Throws:

writeSecnRep

  1. public void writeSecnRep(PkCertRepEvent rep,
  2. OutputStream out)
  3. throws IOException
Throws:

writeXcerRep

  1. public void writeXcerRep(PkXcerRepEvent rep,
  2. OutputStream out)
  3. throws IOException
  4. PkException
Description copied from class: PkEventFormatter
Writes a PkXcerRepEvent to the outputStream.

This implementation simply invokes the writeCertRep method.

Overrides:
Throws:

writeRevoReq

  1. public void writeRevoReq(PkRevoReqEvent req,
  2. OutputStream out)
  3. throws IOException
  4. PkException
Description copied from class: PkEventFormatter
Writes a PkRevoReqEvent to the outputStream.

This implementation simply invokes the writeReq method.

Overrides:
Throws:

writeConfReq

  1. public void writeConfReq(PkConfReqEvent req,
  2. OutputStream out)
  3. throws IOException
Description copied from class: PkEventFormatter
Writes a PkConfReqEvent to the outputStream.

This implementation simply invokes the writeReq method.

Overrides:
Throws:

writeConfRep

  1. public void writeConfRep(PkConfRepEvent rep,
  2. OutputStream out)
  3. throws IOException
Description copied from class: PkEventFormatter
Writes a PkConfRepEvent to the outputStream.

This implementation simply invokes the writeRep method.

Overrides:
Throws:

writeRevoRep

  1. public void writeRevoRep(PkRevoRepEvent rep,
  2. OutputStream out)
  3. throws IOException
Description copied from class: PkEventFormatter
Writes a PkRevoRepEvent to the outputStream.

This implementation simply invokes the writeRep method.

Overrides:
Throws: