com.ibm.security.certclient.base
Class PkCertRepEvent
- java.lang.Object
java.util.EventObject
com.ibm.security.certclient.base.PkEvent
com.ibm.security.certclient.base.PkRepEvent
com.ibm.security.certclient.base.PkCertRepEvent
All implemented interfaces:
Direct known subclasses:
- public class PkCertRepEvent
- extends PkRepEvent
Author:
Rod Mancisidor
See Also:
Field Summary
Fields inherited from class com.ibm.security.certclient.base.PkEvent |
---|
msg |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary
Constructor and Description |
---|
PkCertRepEvent(Object source,Object msg,PkReqEvent req,Certificate cert)
Constructs a
PkCertRepEvent .
|
Method Summary
Modifier and Type | Method and Description |
---|---|
getCert()
|
|
getCertificateChain()
|
|
|
getEncodedCert()
|
getSerialNumber()
|
|
getSubjectDn()
|
|
toString()
Returns a string representation of this event.
|
|
|
write(PkEventFormatter formatter,OutputStream outputStream)
Streams out this event to the
outputStream using the
formatter .
|
Methods inherited from class com.ibm.security.certclient.base.PkRepEvent |
---|
getReq |
Methods inherited from class com.ibm.security.certclient.base.PkEvent |
---|
getMsg |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail
PkCertRepEvent
- public PkCertRepEvent(Object source,
- Object msg,
- PkReqEvent req,
- Certificate cert)
Parameters:
source
- The object that constructs the event. Usually, but not
necessarily, the source
is an instance of a
subclass of * PkActiveSource
. msg
- The message that was parsed in order to create this event.
msg
may be null
when the event is not
built from a message. The class of msg
depends
on the PkEventFormatter
used to create this event. req
- The request object that caused the creation of this reply.
If the reply event is not built as a result of processing
a request, then req
can be null
. cert
- The certificate that was produced to satisfy the request. Method Detail
getCert
- public Certificate getCert()
getCertificateChain
- public X509Certificate[] getCertificateChain( )
getSubjectDn
- public String getSubjectDn()
getSerialNumber
- public BigInteger getSerialNumber( )
getEncodedCert
- public byte[] getEncodedCert()
- throws CertificateEncodingException
Throws:
write
- public void write(PkEventFormatter formatter,
- OutputStream outputStream)
- throws IOException
- PkException
Streams out this event to the
outputStream
using the
formatter
.
Parameters:
formatter
- The PkEventFormatter
that will write the
event. outputStream
- The OuputStream
where the
formatter
will write the event. Throws:
IOException
- if the write operation fails for any reason. toString
- public String toString()
Returns a string representation of this event.
PkCertRepEvent
.