org.bouncycastle.tsp

Class TSPValidationException


public class TSPValidationException
extends TSPException

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

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

Constructor Summary

TSPValidationException(String message)
TSPValidationException(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

getUnderlyingException

Constructor Details

TSPValidationException

public TSPValidationException(String message)

TSPValidationException

public TSPValidationException(String message,
                              int failureCode)

Method Details

getFailureCode

public int getFailureCode()
Return the failure code associated with this exception - if one is set.
Returns:
the failure code if set, -1 otherwise.