public class EntrustPKIXCMPException extends PKIXException
This exception provides access to the lower-level exception that is the root-cause of the problem.
| Constructor and Description |
|---|
EntrustPKIXCMPException(java.lang.String message)
Creates an
EntrustPKIXCMPException with the indicated exception
message. |
EntrustPKIXCMPException(java.lang.String message,
ErrorMsgContent errorMsgContent)
Creates an
EntrustPKIXCMPException that was caused by a
PKIX-CMP error. |
EntrustPKIXCMPException(java.lang.String message,
java.lang.Exception innerException)
Creates an
EntrustPKIXCMPException with the indicated inner
exception, and exception message. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
causedByDisabledUser()
Indicates whether the exception was caused by a PKIX-CMP error message that
was returned by the Security Manager because the user has been disabled.
|
boolean |
causedBySecurityManagerError()
Indicates whether the exception was caused by a PKIX-CMP error message that
was returned by the Security Manager.
|
ErrorMsgContent |
getErrorMessage()
Returns details about the PKIX-CMP error that caused this exception.
|
getMessageChain, getMessageChainpublic EntrustPKIXCMPException(java.lang.String message)
EntrustPKIXCMPException with the indicated exception
message.message - a message explaining why the exception occurredpublic EntrustPKIXCMPException(java.lang.String message,
java.lang.Exception innerException)
EntrustPKIXCMPException with the indicated inner
exception, and exception message. The inner exception provides a lower
level of detail as to why this exception has occurred.message - a message explaining why the exception occurredinnerException - the inner exceptionpublic EntrustPKIXCMPException(java.lang.String message,
ErrorMsgContent errorMsgContent)
EntrustPKIXCMPException that was caused by a
PKIX-CMP error.
The exception is created with the indicated exception message and details about the PKIX-CMP error that caused this exception.
message - a message explaining why the exception occurrederrorMsgContent - details about the PKIX-CMP error that caused this exceptionpublic ErrorMsgContent getErrorMessage()
This exception, and every exception in the inner exception chain, are
checked to see if they contain details about a PKIX-CMP error. If so, this
information is returned; if not, null is returned.
null if this exception was not caused by a PKIX-CMP errorpublic boolean causedBySecurityManagerError()
true if the exception occurred because a PKIX-CMP error
message was received; false otherwisepublic boolean causedByDisabledUser()
true if the exception occurred because the user has been
disabled; false otherwise