com.ibm.security.certclient.base

Class PkCertRepEvent

  1. java.lang.Object
  2. extended byjava.util.EventObject
  3. extended bycom.ibm.security.certclient.base.PkEvent
  4. extended bycom.ibm.security.certclient.base.PkRepEvent
  5. extended bycom.ibm.security.certclient.base.PkCertRepEvent
All implemented interfaces:
Serializable
Direct known subclasses:
PkInitRepEvent, PkKupdRepEvent, PkSecnRepEvent, PkXcerRepEvent

  1. public class PkCertRepEvent
  2. extends PkRepEvent
Superclass of all PKI certificate reply events.
Author:
Rod Mancisidor
See Also:
Serialized Form

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
  1. Certificate
getCert()
  1. X509Certificate[]
getCertificateChain()
  1. byte[]
getEncodedCert()
  1. BigInteger
getSerialNumber()
  1. String
getSubjectDn()
  1. String
toString()
Returns a string representation of this event.
  1. void
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

  1. public PkCertRepEvent(Object source,
  2. Object msg,
  3. PkReqEvent req,
  4. Certificate cert)
Constructs a PkCertRepEvent.
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

  1. public Certificate getCert()

getCertificateChain

  1. public X509Certificate[] getCertificateChain( )

getSubjectDn

  1. public String getSubjectDn()

getSerialNumber

  1. public BigInteger getSerialNumber( )

getEncodedCert

  1. public byte[] getEncodedCert()
  2. throws CertificateEncodingException
Throws:

write

  1. public void write(PkEventFormatter formatter,
  2. OutputStream outputStream)
  3. throws IOException
  4. PkException
Streams out this event to the outputStream using the formatter.
Specified by:
write in class PkEvent
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

  1. public String toString()
Returns a string representation of this event.
Overrides:
toString in class PkEvent