Bouncy Castle Cryptography Library 1.65

Class TSPValidationException

  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.bouncycastle.tsp.TSPException
              extended byorg.bouncycastle.tsp.TSPValidationException
All Implemented Interfaces:

public class TSPValidationException
extends TSPException

Exception thrown if a TSP request or response fails to validate.

If a failure code is associated with the exception it can be retrieved using the getFailureCode() method.

See Also:
Serialized Form

Constructor Summary
TSPValidationException(java.lang.String message)
TSPValidationException(java.lang.String message, int failureCode)
Method Summary
 int getFailureCode()
          Return the failure code associated with this exception - if one is set.
Methods inherited from class org.bouncycastle.tsp.TSPException
getCause, getUnderlyingException
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public TSPValidationException(java.lang.String message)


public TSPValidationException(java.lang.String message,
                              int failureCode)
Method Detail


public int getFailureCode()
Return the failure code associated with this exception - if one is set.

the failure code if set, -1 otherwise.

Bouncy Castle Cryptography Library 1.65