public class CMSSignatureException
extends java.security.SignatureException
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
protected CertificateIdentifier signerID_
protected java.lang.Exception wrappedException_
public CMSSignatureException()
CMSSignatureException
with no message describing
the exception.public CMSSignatureException(java.lang.String msg)
CMSSignatureException
with the given message
describing this particular exception.msg
- the message string describing this exceptionpublic CMSSignatureException(java.lang.Exception ex)
CMSSignatureException
for the given original
exception.ex
- the original exception causing this CMSSignatureExceptionpublic CMSSignatureException(java.lang.String msg, CertificateIdentifier signerID)
CMSSignatureException
with the given message
and the given signer identifier.msg
- the message string describing this exceptionsignerID
- the signer identifier of the entity for which signature
verification has failedpublic CMSSignatureException(java.lang.Exception ex, CertificateIdentifier signerID)
CMSSignatureException
with the given original exception
and the given signer identifier.ex
- the original exception causing this CMSSignatureExceptionsignerID
- the signer identifier of the entity for which signature
verification has failedpublic CMSSignatureException(java.lang.String msg, java.lang.Exception ex, CertificateIdentifier signerID)
CMSSignatureException
with the given original exception,
error message, and the given signer identifier.msg
- the message string describing this exceptionex
- the original exception causing this CMSSignatureExceptionsignerID
- the signer identifier of the entity for which signature
verification has failedpublic CertificateIdentifier getSignerID()
null
if no signerID has been setpublic java.lang.Exception getWrappedException()
null
if this CMSSignatureException itself is the original exception