CertPathValidatorException.BasicReason

  • CertPathValidatorException.BasicReason is an enum that lists reasons why a certification path might be invalid.

  • It provides specific reasons like EXPIRED, INVALID_SIGNATURE, REVOKED, and more for easier identification of the issue.

  • The enum implements CertPathValidatorException.Reason and inherits methods from java.lang.Enum and java.lang.Object.

  • Several predefined enum values like ALGORITHM_CONSTRAINED, NOT_YET_VALID, and UNDETERMINED_REVOCATION_STATUS cover common validation problems.

public static final enum CertPathValidatorException.BasicReason extends Enum<CertPathValidatorException.BasicReason>
implements CertPathValidatorException.Reason

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

Inherited Method Summary

Enum Values

public static final CertPathValidatorException.BasicReason ALGORITHM_CONSTRAINED

The public key or the signature algorithm has been constrained.

public static final CertPathValidatorException.BasicReason EXPIRED

The certificate is expired.

public static final CertPathValidatorException.BasicReason INVALID_SIGNATURE

The signature is invalid.

public static final CertPathValidatorException.BasicReason NOT_YET_VALID

The certificate is not yet valid.

public static final CertPathValidatorException.BasicReason REVOKED

The certificate is revoked.

public static final CertPathValidatorException.BasicReason UNDETERMINED_REVOCATION_STATUS

The revocation status of the certificate could not be determined.

public static final CertPathValidatorException.BasicReason UNSPECIFIED

Unspecified reason.