Added in API level 24

Reason

interface Reason : Serializable
CertPathValidatorException.BasicReason

The BasicReason enumerates the potential reasons that a certification path of any type may be invalid.

PKIXReason

The PKIXReason enumerates the potential PKIX-specific reasons that an X.

CertPathValidatorException.BasicReason.ALGORITHM_CONSTRAINED

The public key or the signature algorithm has been constrained.

CertPathValidatorException.BasicReason.EXPIRED

The certificate is expired.

CertPathValidatorException.BasicReason.INVALID_SIGNATURE

The signature is invalid.

CertPathValidatorException.BasicReason.NOT_YET_VALID

The certificate is not yet valid.

CertPathValidatorException.BasicReason.REVOKED

The certificate is revoked.

CertPathValidatorException.BasicReason.UNDETERMINED_REVOCATION_STATUS

The revocation status of the certificate could not be determined.

CertPathValidatorException.BasicReason.UNSPECIFIED

Unspecified reason.

PKIXReason.INVALID_KEY_USAGE

The certificate's key usage is invalid.

PKIXReason.INVALID_NAME

The name constraints have been violated.

PKIXReason.INVALID_POLICY

The policy constraints have been violated.

PKIXReason.NAME_CHAINING

The certificate does not chain correctly.

PKIXReason.NOT_CA_CERT

The certificate is not a CA certificate.

PKIXReason.NO_TRUST_ANCHOR

No acceptable trust anchor found.

PKIXReason.PATH_TOO_LONG

The path length constraint has been violated.

PKIXReason.UNRECOGNIZED_CRIT_EXT

The certificate contains one or more unrecognized critical extensions.

The reason the validation algorithm failed.

Summary