iaik.cms
Class InvalidContentHashException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.security.GeneralSecurityException
              extended by java.security.SignatureException
                  extended by iaik.cms.CMSSignatureException
                      extended by iaik.cms.InvalidContentHashException
All Implemented Interfaces:
java.io.Serializable

public class InvalidContentHashException
extends CMSSignatureException

This exception may be thrown if the verification of a SignedData signature fails because the hash calculated over the content does not match to the value of signed MessageDigest attribute value.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class iaik.cms.CMSSignatureException
signerID_, wrappedException_
 
Constructor Summary
InvalidContentHashException()
          Creates a InvalidContentHashException with no message describing the exception.
InvalidContentHashException(java.lang.String msg)
          Creates a InvalidContentHashException with the given message describing this particular exception.
InvalidContentHashException(java.lang.String msg, CertificateIdentifier signerID)
          Creates a InvalidContentHashException with the given message and the given signer identifier.
 
Method Summary
 
Methods inherited from class iaik.cms.CMSSignatureException
getSignerID, getWrappedException
 
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

InvalidContentHashException

public InvalidContentHashException()
Creates a InvalidContentHashException with no message describing the exception.


InvalidContentHashException

public InvalidContentHashException(java.lang.String msg)
Creates a InvalidContentHashException with the given message describing this particular exception.

Parameters:
msg - the message string describing this exception

InvalidContentHashException

public InvalidContentHashException(java.lang.String msg,
                                   CertificateIdentifier signerID)
Creates a InvalidContentHashException with the given message and the given signer identifier.

Parameters:
msg - the message string describing this exception
signerID - the signer identifier of the entity for which signature verification has failed

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

IAIK-CMS 6.0, (c) 2002 IAIK, (c) 2003, 2023 SIC