public class CertValidatorException extends Exception
| Modifier and Type | Field and Description |
|---|---|
static int |
REASON_CERT_EXPIRED
Certificate has expired.
|
static int |
REASON_CERT_NOT_YET_VALID
Certificate is not yet valid.
|
static int |
REASON_CERT_STATUS_REVOKED
Certificate is revoked.
|
static int |
REASON_CERT_STATUS_UNKNOWN
Certificate status is unknown.
|
static int |
REASON_CERT_STATUS_UNRESOLVED
Certificate status is unresolved.
|
static int |
REASON_CRL
CRL exception.
|
static int |
REASON_OCSP_CERTIFICATE
OCSP certificate error.
|
static int |
REASON_OCSP_REQUEST_FAILED
OCSP request failed.
|
static int |
REASON_OCSP_RESPONSE_MALFORMED
OCSP response is malformed.
|
static int |
REASON_OCSP_RESPONSE_NONCE
OCSP response nonce is invalid.
|
static int |
REASON_OCSP_RESPONSE_UNSUCCESSFUL
OCSP response status is unsuccessful.
|
static int |
REASON_OCSP_SIGNATURE
OCSP signature error.
|
static int |
REASON_TSL
TSL exception.
|
| Constructor and Description |
|---|
CertValidatorException(String message,
int reason)
Creates a CertValidatorException with the given parameters.
|
CertValidatorException(String message,
int reason,
X509Certificate certificate,
Date revocationTime,
CRLReason revocationReason)
Creates a CertValidatorException with the given parameters.
|
CertValidatorException(String message,
Throwable cause,
int reason)
Creates a CertValidatorException with the given parameters.
|
CertValidatorException(String message,
Throwable cause,
int reason,
X509Certificate certificate,
Date revocationTime,
CRLReason revocationReason)
Creates a CertValidatorException with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getCertificate()
Returns the certificate that was being validated.
|
String |
getMessage() |
int |
getReason()
Returns the reason code of this exception.
|
CRLReason |
getRevocationReason()
Returns the reason the certificate has been revoked, or
null. |
Date |
getRevocationTime()
Returns the revocation time of the certificate that was being validated.
|
void |
setCertificate(X509Certificate certificate) |
void |
setRevocationReason(CRLReason revocationReason) |
void |
setRevocationTime(Date revocationTime) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int REASON_CERT_STATUS_REVOKED
public static final int REASON_CERT_STATUS_UNKNOWN
public static final int REASON_CERT_STATUS_UNRESOLVED
public static final int REASON_CERT_EXPIRED
public static final int REASON_CERT_NOT_YET_VALID
public static final int REASON_OCSP_REQUEST_FAILED
public static final int REASON_OCSP_RESPONSE_MALFORMED
public static final int REASON_OCSP_RESPONSE_UNSUCCESSFUL
public static final int REASON_OCSP_RESPONSE_NONCE
public static final int REASON_OCSP_CERTIFICATE
public static final int REASON_OCSP_SIGNATURE
public static final int REASON_CRL
public static final int REASON_TSL
public CertValidatorException(String message, int reason)
public CertValidatorException(String message, Throwable cause, int reason)
public CertValidatorException(String message, int reason, X509Certificate certificate, Date revocationTime, CRLReason revocationReason)
public CertValidatorException(String message, Throwable cause, int reason, X509Certificate certificate, Date revocationTime, CRLReason revocationReason)
public int getReason()
public X509Certificate getCertificate()
public void setCertificate(X509Certificate certificate)
public Date getRevocationTime()
public void setRevocationTime(Date revocationTime)
public CRLReason getRevocationReason()
null.public void setRevocationReason(CRLReason revocationReason)
public String getMessage()
getMessage in class Throwable