Package java.security.cert
Class CertificateRevokedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.security.GeneralSecurityException
-
- java.security.cert.CertificateException
-
- java.security.cert.CertificateRevokedException
-
- All Implemented Interfaces:
Serializable
public class CertificateRevokedException extends CertificateException
Exception that is thrown when a certificate is invalid because it has been revoked.- Since:
- 1.7
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CertificateRevokedException(Date revocationDate, CRLReason reason, X500Principal authority, Map<String,Extension> extensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X500PrincipalgetAuthorityName()Returns the principal of the authority that issued the revocation.Map<String,Extension>getExtensions()X.509 extensions that are associated with this revocation.DategetInvalidityDate()Returns the date when the certificate was known to become invalid if available.StringgetMessage()Returns the detail message of the thrown exception.DategetRevocationDate()Returns the date the certificate was revoked.CRLReasongetRevocationReason()Returns the reason the certificate was revoked if available.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CertificateRevokedException
public CertificateRevokedException(Date revocationDate, CRLReason reason, X500Principal authority, Map<String,Extension> extensions)
- Parameters:
revocationDate- date the certificate was revokedreason- reason the certificate was revoked if availableauthority- authority that revoked the certificateextensions- X.509 extensions associated with this revocation
-
-
Method Detail
-
getAuthorityName
public X500Principal getAuthorityName()
Returns the principal of the authority that issued the revocation.
-
getExtensions
public Map<String,Extension> getExtensions()
X.509 extensions that are associated with this revocation.
-
getInvalidityDate
public Date getInvalidityDate()
Returns the date when the certificate was known to become invalid if available.
-
getMessage
public String getMessage()
Returns the detail message of the thrown exception.- Overrides:
getMessagein classThrowable
-
getRevocationDate
public Date getRevocationDate()
Returns the date the certificate was revoked.
-
getRevocationReason
public CRLReason getRevocationReason()
Returns the reason the certificate was revoked if available.
-
-