Class ImprintDigestInvalidException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.bouncycastle.tsp.cms.ImprintDigestInvalidException
All Implemented Interfaces:
Serializable

public class ImprintDigestInvalidException extends 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:
  • Constructor Details

    • ImprintDigestInvalidException

      public ImprintDigestInvalidException(String message, TimeStampToken token)
  • Method Details

    • getTimeStampToken

      public TimeStampToken getTimeStampToken()
      Return the time stamp token whose imprint check failed.
      Returns:
      the token associated with this exception.