com.ibm.security.certclient.base

Class PkPollException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.security.certclient.base.PkException
  5. extended bycom.ibm.security.certclient.base.PkPollException
All implemented interfaces:
Serializable

  1. public class PkPollException
  2. extends PkException
Thrown when a request can not be automatically granted. This can happen for example when business policies dictate that an authorized person approve a request. In that case, the bean that determines that this interaction is needed will throw this exception, this unwinds the stack and the formatter bean should be able to convey to the client that it needs to poll for a reply later.
Author:
Rod Mancisidor
See Also:
Serialized Form

Constructor Summary

Constructor and Description
PkPollException(int pollReference,int timeToCheckBack)
Construct a new PkPollException.

Method Summary

Modifier and Type Method and Description
  1. int
getPollReference()
Returns the polling reference number for the corresponding request.
  1. int
getTimeToCheckBack()
Returns the time to check back for a reply in seconds.
Methods inherited from class com.ibm.security.certclient.base.PkException
getWrappedException, hasWrappedException, printStackTrace, printStackTrace, printStackTrace, toString
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

PkPollException

  1. public PkPollException(int pollReference,
  2. int timeToCheckBack)
Construct a new PkPollException.
Parameters:
pollReference - The number that should be used to retrieve a reply for the corresponding request.
timeToCheckBack - The number of seconds that should elapse before the client attempts to poll for a reply.

Method Detail

getPollReference

  1. public int getPollReference()
Returns the polling reference number for the corresponding request.

getTimeToCheckBack

  1. public int getTimeToCheckBack()
Returns the time to check back for a reply in seconds.