com.ibm.security.certclient.base

Class PkCertReqEvent

  1. java.lang.Object
  2. extended byjava.util.EventObject
  3. extended bycom.ibm.security.certclient.base.PkEvent
  4. extended bycom.ibm.security.certclient.base.PkReqEvent
  5. extended bycom.ibm.security.certclient.base.PkCertReqEvent
All implemented interfaces:
Serializable
Direct known subclasses:
PkInitReqEvent, PkKupdReqEvent, PkSecnReqEvent, PkXcerReqEvent

  1. public class PkCertReqEvent
  2. extends PkReqEvent
Superclass of all PKI certificate request events. It is used to capture common behavior and characteristics of the following CMP requests:

RFC2510 request type subclass
Initialization Request PkInitReqEvent
Certification Request PkSecnReqEvent
Key Recovery Request PkKrecReqEvent
Cross-Cert. Request PkXcerReqEvent
Author:
Rod Mancisidor
See Also:
Serialized Form

Field Summary

Fields inherited from class com.ibm.security.certclient.base.PkReqEvent
attrs
Fields inherited from class com.ibm.security.certclient.base.PkEvent
msg
Fields inherited from class java.util.EventObject
source

Constructor Summary

Constructor and Description
PkCertReqEvent(Object source,Object msg,PkAttrs attrs)
Constructs a PkCertReqEvent.

Method Summary

Modifier and Type Method and Description
  1. PkRepEvent
executeOn(PkListener listener)
Have the listener process this request as a general certificate request.
  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.PkReqEvent
getAttrs, toString
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

PkCertReqEvent

  1. public PkCertReqEvent(Object source,
  2. Object msg,
  3. PkAttrs attrs)
Constructs a PkCertReqEvent.
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.
attrs - The set of attributes for this event.

Method Detail

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.

executeOn

  1. public PkRepEvent executeOn(PkListener listener)
  2. throws PkException
Have the listener process this request as a general certificate request. Return whatever the listener returns.
Specified by:
Parameters:
listener - the PkListener that will process the event
Throws: