com.ibm.security.certclient.fmt

Class PkHttpEventFormatter

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

  1. public final class PkHttpEventFormatter
  2. extends PkEventFormatter
  3. implements PkConstants
This class builds events from their HTTP representations and writes events to their HTTP 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
PkHttpEventFormatter()

Method Summary

Modifier and Type Method and Description
  1. PkEvent
readEvent(Object source,InputStream is,PkReqEvent req)
  1. void
writeException(Exception e,OutputStream os)
  1. void
writeHttpRep(PkHttpRepEvent httpRep,OutputStream out)
Methods inherited from class com.ibm.security.certclient.base.PkEventFormatter
writeCertRep, writeCertReq, writeConfRep, writeConfReq, writeEvent, writeGnrlRep, writeGnrlReq, 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

PkHttpEventFormatter

  1. public PkHttpEventFormatter()

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 os)
  3. throws IOException
Description copied from class: PkEventFormatter
Writes the exception e to the ouputStream
Specified by:
Parameters:
e - The exception to write.
os - The output stream where the exception will be written.
Throws:

writeHttpRep

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

This implementation simply invokes the writeRep method.

Overrides:
Throws: