Bouncy Castle Cryptography Library 1.87

org.bouncycastle.tsp.cms
Class ImprintDigestInvalidException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.bouncycastle.tsp.cms.ImprintDigestInvalidException
All Implemented Interfaces:
java.io.Serializable

public class ImprintDigestInvalidException
extends java.lang.Exception

Thrown during validation of a CMSTimeStampedData when a calculated digest does not match the message imprint recorded in a time stamp token, or when a token being checked is not associated with the evidence present in the message. The offending token is retrievable via getTimeStampToken().

See Also:
Serialized Form

Constructor Summary
ImprintDigestInvalidException(java.lang.String message, TimeStampToken token)
           
 
Method Summary
 TimeStampToken getTimeStampToken()
          Return the time stamp token whose imprint check failed.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

ImprintDigestInvalidException

public ImprintDigestInvalidException(java.lang.String message,
                                     TimeStampToken token)
Method Detail

getTimeStampToken

public TimeStampToken getTimeStampToken()
Return the time stamp token whose imprint check failed.

Returns:
the token associated with this exception.

Bouncy Castle Cryptography Library 1.87