com.ibm.security.certclient.fmt
Class PkCmpEventFormatter
- java.lang.Object
com.ibm.security.certclient.base.PkEventFormatter
com.ibm.security.certclient.fmt.PkCmpEventFormatter
All implemented interfaces:
Direct known subclasses:
- public class PkCmpEventFormatter
- 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 |
|---|
PkCmpEventFormatter()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
readEvent(Object source,InputStream is,PkReqEvent req)
|
|
|
writeCertRep(PkCertRepEvent rep,OutputStream out)
|
|
writeCertReq(PkCertReqEvent req,OutputStream out)
|
|
writeConfRep(PkConfRepEvent rep,OutputStream out)
|
|
writeConfReq(PkConfReqEvent req,OutputStream out)
|
|
writeException(Exception e,OutputStream out)
|
|
writeRevoRep(PkRevoRepEvent rep,OutputStream out)
|
|
writeRevoReq(PkRevoReqEvent req,OutputStream out)
|
|
writeSecnRep(PkCertRepEvent rep,OutputStream out)
|
|
writeSecnReq(PkSecnReqEvent req,OutputStream out)
|
|
writeXcerRep(PkXcerRepEvent rep,OutputStream out)
|
|
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
- public PkCmpEventFormatter()
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
- PkException
Description copied from class:
PkEventFormatter
Writes a
PkCertReqEvent to the outputStream.
This implementation simply invokes the writeReq method.
Overrides:
writeCertReq in class PkEventFormatter
writeSecnReq
- public void writeSecnReq(PkSecnReqEvent req,
- OutputStream out)
- throws IOException
- PkException
Description copied from class:
PkEventFormatter
Writes a
PkSecnReqEvent to the outputStream.
This implementation simply invokes the writeCertReq method.
Overrides:
writeSecnReq in class PkEventFormatter
writeXcerReq
- public void writeXcerReq(PkXcerReqEvent req,
- OutputStream out)
- throws IOException
- PkException
Description copied from class:
PkEventFormatter
Writes a
PkXcerReqEvent to the outputStream.
This implementation simply invokes the writeCertReq method.
Overrides:
writeXcerReq in class PkEventFormatter
writeCertRep
- public void writeCertRep(PkCertRepEvent rep,
- OutputStream out)
- throws IOException
- PkException
Description copied from class:
PkEventFormatter
Writes a
PkCertRepEvent to the outputStream.
This implementation simply invokes the writeRep method.
Overrides:
writeCertRep in class PkEventFormatter
writeSecnRep
- public void writeSecnRep(PkCertRepEvent rep,
- OutputStream out)
- throws IOException
Throws:
writeXcerRep
- public void writeXcerRep(PkXcerRepEvent rep,
- OutputStream out)
- throws IOException
- PkException
Description copied from class:
PkEventFormatter
Writes a
PkXcerRepEvent to the outputStream.
This implementation simply invokes the writeCertRep method.
Overrides:
writeXcerRep in class PkEventFormatter
writeRevoReq
- public void writeRevoReq(PkRevoReqEvent req,
- OutputStream out)
- throws IOException
- PkException
Description copied from class:
PkEventFormatter
Writes a
PkRevoReqEvent to the outputStream.
This implementation simply invokes the writeReq method.
Overrides:
writeRevoReq in class PkEventFormatter
writeConfReq
- public void writeConfReq(PkConfReqEvent req,
- OutputStream out)
- throws IOException
Description copied from class:
PkEventFormatter
Writes a
PkConfReqEvent to the outputStream.
This implementation simply invokes the writeReq method.
Overrides:
writeConfReq in class PkEventFormatter
Throws:
writeConfRep
- public void writeConfRep(PkConfRepEvent rep,
- OutputStream out)
- throws IOException
Description copied from class:
PkEventFormatter
Writes a
PkConfRepEvent to the outputStream.
This implementation simply invokes the writeRep method.
Overrides:
writeConfRep in class PkEventFormatter
Throws:
writeRevoRep
- public void writeRevoRep(PkRevoRepEvent rep,
- OutputStream out)
- throws IOException
Description copied from class:
PkEventFormatter
Writes a
PkRevoRepEvent to the outputStream.
This implementation simply invokes the writeRep method.
Overrides:
writeRevoRep in class PkEventFormatter
Throws:
PkEventFormatter