com.ibm.security.certclient.fmt
Class PkPkcsEventFormatter
- java.lang.Object
com.ibm.security.certclient.base.PkEventFormatter
com.ibm.security.certclient.fmt.PkPkcsEventFormatter
All implemented interfaces:
Direct known subclasses:
- public class PkPkcsEventFormatter
- extends PkEventFormatter
- implements PkConstants
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.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 |
|---|---|
|
readCertRepEvent(Object source,com.ibm.security.util.DerValue der,PkReqEvent req)
|
|
readCertReqEvent(Object source,com.ibm.security.util.DerValue der)
|
readEvent(Object source,InputStream is,PkReqEvent req)
|
|
|
writeCertRep(PkCertRepEvent rep,OutputStream out)
|
|
writeCertReq(PkCertReqEvent req,OutputStream out)
|
|
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
- public PkPkcsEventFormatter()
Method Detail
readEvent
- public PkEvent readEvent(Object source,
- InputStream is,
- PkReqEvent req)
- throws PkException
- IOException
Returns a new instance of a subclass of PkEvent by reading it from an
inputStream. This is a factory method.
Specified by:
readEvent in class PkEventFormatter
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
- public void writeException(Exception e,
- OutputStream out)
- throws IOException
Description copied from class:
PkEventFormatter
Writes the exception
e to the ouputStream
Specified by:
writeException in class PkEventFormatter
Parameters:
e - The exception to write. out - The output stream where the exception will be
written. Throws:
writeCertReq
- public void writeCertReq(PkCertReqEvent req,
- OutputStream out)
- throws IOException
Description copied from class:
PkEventFormatter
Writes a
PkCertReqEvent to the outputStream.
This implementation simply invokes the writeReq method.
Overrides:
writeCertReq in class PkEventFormatter
Throws:
writeCertRep
- public void writeCertRep(PkCertRepEvent rep,
- OutputStream out)
- throws IOException
Description copied from class:
PkEventFormatter
Writes a
PkCertRepEvent to the outputStream.
This implementation simply invokes the writeRep method.
Overrides:
writeCertRep in class PkEventFormatter
Throws:
readCertReqEvent
- protected PkCertReqEvent readCertReqEvent( Object source,
- com.ibm.security.util.DerValue der)
- throws IOException
Throws:
readCertRepEvent
- protected PkCertRepEvent readCertRepEvent( Object source,
- com.ibm.security.util.DerValue der,
- PkReqEvent req)
- throws IOException
Throws:
PkEventFormatter