public class RevocationException extends CertificationException
m_exception| Constructor and Description |
|---|
RevocationException(java.lang.String message)
Creates a
RevocationException. |
RevocationException(java.lang.String message,
java.lang.Exception innerException,
X509Certificate revokedCert,
RevokedCertificate revokedCertInfo)
Creates a
RevocationException. |
RevocationException(java.lang.String message,
X509Certificate revokedCert,
RevokedCertificate revokedCertInfo)
Creates a
RevocationException. |
RevocationException(X509Certificate revokedCert,
RevokedCertificate revokedCertInfo)
Creates a
RevocationException. |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getCertificate()
Returns the revoked certificate if it was set,
null otherwise. |
RevokedCertificate |
getDetails()
Returns information about the revoked certificate (the CRL entry) if it
was set,
null otherwise. |
java.util.Date |
getRevocationDate()
Returns the date that the certificate was revoked.
|
ReasonCode |
getRevocationReason()
Returns the reason the certificate was revoked.
|
getInnerExceptiongetMessageChain, getMessageChainpublic RevocationException(java.lang.String message)
RevocationException.
This exception does not contain any revocation information, only a message.
message - a message explaining why the exception occurredpublic RevocationException(X509Certificate revokedCert, RevokedCertificate revokedCertInfo)
RevocationException.
This exception will contain the revoked certificate and information about the revoked certificate (the CRL entry).
revokedCert - the revoked certificaterevokedCertInfo - information about the revoked certificate (the CRL entry)public RevocationException(java.lang.String message,
X509Certificate revokedCert,
RevokedCertificate revokedCertInfo)
RevocationException.
This exception will contain a message explaining why it occurred, the revoked certificate and information about the revoked certificate (the CRL entry).
message - a message explaining why the exception occurredrevokedCert - the revoked certificaterevokedCertInfo - information about the revoked certificate (the CRL entry)public RevocationException(java.lang.String message,
java.lang.Exception innerException,
X509Certificate revokedCert,
RevokedCertificate revokedCertInfo)
RevocationException.
This exception will contain a message explaining why it occurred, the exception that caused this exception, the revoked certificate and information about the revoked certificate (the CRL entry).
message - a message explaining why the exception occurredinnerException - an exception that caused this exceptionrevokedCert - the revoked certificaterevokedCertInfo - information about the revoked certificate (the CRL entry)public X509Certificate getCertificate()
null otherwise.
public RevokedCertificate getDetails()
null otherwise.
public java.util.Date getRevocationDate()
If the information about the revoked certificate has not been set,
null is returned.
public ReasonCode getRevocationReason() throws X509ExtensionInitException
The reason the certificate was revoked can be found in the
ReasonCode extension of the CRL entry.
If the information about the revoked certificate has not been set,
null is returned.
X509ExtensionInitException - thrown if an error occurs while extracting the ReasonCode
extension from the CRL entry