iaik.cms
Class InvalidContentTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
java.security.SignatureException
iaik.cms.CMSSignatureException
iaik.cms.InvalidContentTypeException
- All Implemented Interfaces:
- java.io.Serializable
public class InvalidContentTypeException
- extends CMSSignatureException
This exception may be thrown if the creation/verification of a SignedData-SignerInfo
signature or an AuthenticatedData fails because the signed ContentType attribute does
not match to the eContentType value of the EncapsulatedContentInfo, or signed/authenticated
attributes are present, but the ContentType attribute is missing.
This exception may also be thrown if a CounterSignature
attribute contains a ContentType attribute (not allowed for
counter signatures).
- See Also:
- Serialized Form
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 |
InvalidContentTypeException
public InvalidContentTypeException()
- Default constructor.
InvalidContentTypeException
public InvalidContentTypeException(java.lang.String msg)
- Creates a
InvalidContentTypeException
with the given message
describing this particular exception.
- Parameters:
msg
- the message string describing this exception
InvalidContentTypeException
public InvalidContentTypeException(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 exceptionsignerID
- the signer identifier of the entity for which signature
verification has failed
IAIK-CMS 6.0, (c) 2002 IAIK, (c) 2003, 2023 SIC