Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TimeStampToken getTimeStampToken()
      Return the time stamp token whose imprint check failed.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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.