iaik.cms
Class InvalidContentTypeException

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.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

Field Summary
 
Fields inherited from class iaik.cms.CMSSignatureException
signerID_, wrappedException_
 
Constructor Summary
InvalidContentTypeException()
          Default constructor.
InvalidContentTypeException(java.lang.String msg)
          Creates a InvalidContentTypeException with the given message describing this particular exception.
InvalidContentTypeException(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

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 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