iaik.cms
Class CMSSignatureException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CertificateNotFoundException, InvalidContentHashException, InvalidContentTypeException, InvalidSignatureValueException

public class CMSSignatureException
extends java.security.SignatureException

This exception may be thrown if SignedData signature verification fails for some reason.

See Also:
Serialized Form

Field Summary
protected  CertificateIdentifier signerID_
          The ID of the entity for which signature verification has failed.
protected  java.lang.Exception wrappedException_
          The (original) exception that has caused (is wrapped by) this CMSSignatureException.
 
Constructor Summary
CMSSignatureException()
          Creates a CMSSignatureException with no message describing the exception.
CMSSignatureException(java.lang.Exception ex)
          Creates a CMSSignatureException for the given original exception.
CMSSignatureException(java.lang.Exception ex, CertificateIdentifier signerID)
          Creates a CMSSignatureException with the given original exception and the given signer identifier.
CMSSignatureException(java.lang.String msg)
          Creates a CMSSignatureException with the given message describing this particular exception.
CMSSignatureException(java.lang.String msg, CertificateIdentifier signerID)
          Creates a CMSSignatureException with the given message and the given signer identifier.
CMSSignatureException(java.lang.String msg, java.lang.Exception ex, CertificateIdentifier signerID)
          Creates a CMSSignatureException with the given original exception, error message, and the given signer identifier.
 
Method Summary
 CertificateIdentifier getSignerID()
          Get the signer identifier that identifies the entity for which signature verification has failed.
 java.lang.Exception getWrappedException()
          Gets the original exception that has caused (is wrapped by) this CMSSignatureException.
 
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
 

Field Detail

signerID_

protected CertificateIdentifier signerID_
The ID of the entity for which signature verification has failed.


wrappedException_

protected java.lang.Exception wrappedException_
The (original) exception that has caused (is wrapped by) this CMSSignatureException.

Constructor Detail

CMSSignatureException

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


CMSSignatureException

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

Parameters:
msg - the message string describing this exception

CMSSignatureException

public CMSSignatureException(java.lang.Exception ex)
Creates a CMSSignatureException for the given original exception.

Parameters:
ex - the original exception causing this CMSSignatureException

CMSSignatureException

public CMSSignatureException(java.lang.String msg,
                             CertificateIdentifier signerID)
Creates a CMSSignatureException 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

CMSSignatureException

public CMSSignatureException(java.lang.Exception ex,
                             CertificateIdentifier signerID)
Creates a CMSSignatureException with the given original exception and the given signer identifier.

Parameters:
ex - the original exception causing this CMSSignatureException
signerID - the signer identifier of the entity for which signature verification has failed

CMSSignatureException

public CMSSignatureException(java.lang.String msg,
                             java.lang.Exception ex,
                             CertificateIdentifier signerID)
Creates a CMSSignatureException with the given original exception, error message, and the given signer identifier.

Parameters:
msg - the message string describing this exception
ex - the original exception causing this CMSSignatureException
signerID - the signer identifier of the entity for which signature verification has failed
Method Detail

getSignerID

public CertificateIdentifier getSignerID()
Get the signer identifier that identifies the entity for which signature verification has failed.

Returns:
the signer identifier that identifies the entity for which signature verification has failed, or null if no signerID has been set

getWrappedException

public java.lang.Exception getWrappedException()
Gets the original exception that has caused (is wrapped by) this CMSSignatureException.

Returns:
the original exception that has caused (is wrapped by) this CMSSignatureException, or null if this CMSSignatureException itself is the original exception

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