com.ibm.security.certclient.fmt

Class PkPkcsEventFormatter

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

  1. public class PkPkcsEventFormatter
  2. extends PkEventFormatter
  3. implements PkConstants
This class builds events from their PKCS10/7 representations and writes events to their PKCS10/7 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, sccsid
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
PkPkcsEventFormatter()

Method Summary

Modifier and Type Method and Description
  1. protected
  2. PkCertRepEvent
readCertRepEvent(Object source,com.ibm.security.util.DerValue der,PkReqEvent req)
  1. protected
  2. PkCertReqEvent
readCertReqEvent(Object source,com.ibm.security.util.DerValue der)
  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
writeException(Exception e,OutputStream out)
Methods inherited from class com.ibm.security.certclient.base.PkEventFormatter
writeConfRep, writeConfReq, writeEvent, writeGnrlRep, writeGnrlReq, writeHttpRep, writeHttpReq, writeInitRep, writeInitReq, writeKrecRep, writeKrecReq, writeKupdRep, writeKupdReq, writePollReq, writeRep, writeReq, writeRevoRep, writeRevoReq, writeSecnRep, writeSecnReq, writeXcerRep, writeXcerReq
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

PkPkcsEventFormatter

  1. public PkPkcsEventFormatter()

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
Description copied from class: PkEventFormatter
Writes a PkCertReqEvent to the outputStream.

This implementation simply invokes the writeReq method.

Overrides:
Throws:

writeCertRep

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

This implementation simply invokes the writeRep method.

Overrides:
Throws:

readCertReqEvent

  1. protected PkCertReqEvent readCertReqEvent( Object source,
  2. com.ibm.security.util.DerValue der)
  3. throws IOException
Throws:

readCertRepEvent

  1. protected PkCertRepEvent readCertRepEvent( Object source,
  2. com.ibm.security.util.DerValue der,
  3. PkReqEvent req)
  4. throws IOException
Throws: