com.ibm.security.certclient.base

Class PkPipe

  1. java.lang.Object
  2. extended bycom.ibm.security.certclient.base.PkSource
  3. extended bycom.ibm.security.certclient.base.PkPipe
All implemented interfaces:
PkListener, EventListener
Direct known subclasses:
PkCertGen, PkCertPath, PkEeXMgr, PkTcpClient

  1. public class PkPipe
  2. extends PkSource
  3. implements PkListener
This is the main super class of PKI bean classes. It defines all do*Req methods to invoke a more general do*Req method. It defines The most general method (doReq) as a method that propagates the request and returns whatever comes back from propagate.
Author:
Rod Mancisidor

Field Summary

Fields inherited from class com.ibm.security.certclient.base.PkSource
isInitialized

Constructor Summary

Constructor and Description
PkPipe()
Construct a new PkPipe

Method Summary

Modifier and Type Method and Description
  1. PkCertRepEvent
doCertReq(PkCertReqEvent req)
Returns the general certificate reply for a given general certificate request.
  1. PkConfRepEvent
doConfReq(PkConfReqEvent req)
  1. PkGnrlRepEvent
doGnrlReq(PkGnrlReqEvent req)
Returns the general reply for a given general request.
  1. PkHttpRepEvent
doHttpReq(PkHttpReqEvent req)
Returns the HTTP reply for a given HTTP request.
  1. PkInitRepEvent
doInitReq(PkInitReqEvent req)
Returns the initialization reply for a given initialization request.
  1. PkKrecRepEvent
doKrecReq(PkKrecReqEvent req)
Returns the key recovery reply for a given key recovery request.
  1. PkKupdRepEvent
doKupdReq(PkKupdReqEvent req)
Returns the key update reply for a given key update request.
  1. PkCertRepEvent
doPollReq(PkPollReqEvent req)
Returns the certificate reply for a given polling request.
  1. PkRepEvent
doReq(PkReqEvent req)
Returns the reply for a given request.
  1. PkRevoRepEvent
doRevoReq(PkRevoReqEvent req)
Returns the revocation reply for a given revocation request.
  1. PkSecnRepEvent
doSecnReq(PkSecnReqEvent req)
Returns the certification reply for a given certification request.
  1. PkXcerRepEvent
doXcerReq(PkXcerReqEvent req)
Returns the cross-certificate reply for a given cross-certificate request.
Methods inherited from class com.ibm.security.certclient.base.PkSource
addPkListener, init, initialize, initNext, propagate, propagate, propagate, propagate, propagate, propagate, propagate, propagate, propagate, propagate, propagate, removePkListener, replacePkListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.security.certclient.base.PkListener
initialize

Constructor Detail

PkPipe

  1. public PkPipe()
Construct a new PkPipe

Method Detail

doReq

  1. public PkRepEvent doReq(PkReqEvent req)
  2. throws PkException
Returns the reply for a given request.

This is the most general form of the request handler methods, it gets called when the bean has not provided a more specific method to handle the request.

The PkPipe implementation simply propagates the request event to the next listener in the chain.

Specified by:
doReq in interface PkListener
Throws:

doHttpReq

  1. public PkHttpRepEvent doHttpReq( PkHttpReqEvent req)
  2. throws PkException
Returns the HTTP reply for a given HTTP request.

This implementation simply invokes the doReq method.

Specified by:
doHttpReq in interface PkListener
Throws:

doPollReq

  1. public PkCertRepEvent doPollReq( PkPollReqEvent req)
  2. throws PkException
Returns the certificate reply for a given polling request.

This implementation simply invokes the doReq method.

Specified by:
doPollReq in interface PkListener
Throws:

doCertReq

  1. public PkCertRepEvent doCertReq( PkCertReqEvent req)
  2. throws PkException
Returns the general certificate reply for a given general certificate request.

This is a general form of the certificate request handler methods, it gets called when the bean has not provided a more specific method to handle the request. The more specific methods are:

  • doInitReq
  • doSecnReq
  • doKupdReq
  • doXCerReq
This implementation simply invokes the doReq method.
Specified by:
doCertReq in interface PkListener
Throws:

doInitReq

  1. public PkInitRepEvent doInitReq( PkInitReqEvent req)
  2. throws PkException
Returns the initialization reply for a given initialization request.

This implementation simply invokes the doCertReq method.

Specified by:
doInitReq in interface PkListener
Throws:

doSecnReq

  1. public PkSecnRepEvent doSecnReq( PkSecnReqEvent req)
  2. throws PkException
Returns the certification reply for a given certification request.

This implementation simply invokes the doCertReq method.

Specified by:
doSecnReq in interface PkListener
Throws:

doKupdReq

  1. public PkKupdRepEvent doKupdReq( PkKupdReqEvent req)
  2. throws PkException
Returns the key update reply for a given key update request.

This implementation simply invokes the doCertReq method.

Specified by:
doKupdReq in interface PkListener
Throws:

doXcerReq

  1. public PkXcerRepEvent doXcerReq( PkXcerReqEvent req)
  2. throws PkException
Returns the cross-certificate reply for a given cross-certificate request.

This implementation simply invokes the doCertReq method.

Specified by:
doXcerReq in interface PkListener
Throws:

doKrecReq

  1. public PkKrecRepEvent doKrecReq( PkKrecReqEvent req)
  2. throws PkException
Returns the key recovery reply for a given key recovery request.

This implementation simply invokes the doReq method.

Specified by:
doKrecReq in interface PkListener
Throws:

doRevoReq

  1. public PkRevoRepEvent doRevoReq( PkRevoReqEvent req)
  2. throws PkException
Returns the revocation reply for a given revocation request.

This implementation simply invokes the doReq method.

Specified by:
doRevoReq in interface PkListener
Throws:

doConfReq

  1. public PkConfRepEvent doConfReq( PkConfReqEvent req)
  2. throws PkException
Description copied from interface: PkListener
Returns the reply for a given confirm request. For version 2, change void to PkConfRepEvent
Specified by:
doConfReq in interface PkListener
Throws:

doGnrlReq

  1. public PkGnrlRepEvent doGnrlReq( PkGnrlReqEvent req)
  2. throws PkException
Returns the general reply for a given general request.

This implementation simply invokes the doReq method.

Specified by:
doGnrlReq in interface PkListener
Throws: