public static final enum

DigitalSignatureValidationResult.CertificateStatus

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.pspdfkit.signatures.DigitalSignatureValidationResult.CertificateStatus

Class Overview

Status of the certificate that was used for signing the document. The default status of a valid CA-issued certificate is OK.

Summary

Enum Values
DigitalSignatureValidationResult.CertificateStatus  EXPIRED  Either the certificate, the OCSP, or the CRL has expired. 
DigitalSignatureValidationResult.CertificateStatus  EXPIRED_BUT_VALID_IN_THE_PAST  Either the certificate, the OCSP, or the CRL has expired as of today but we have confidence that this certificate was valid in the past, when the signature was created. 
DigitalSignatureValidationResult.CertificateStatus  EXPIRED_NO_POE  Either the certificate, the OCSP, or the CRL has expired but we don't have proof of existence (POE) of the digital signature. 
DigitalSignatureValidationResult.CertificateStatus  FAILED_RETRIEVE_SIGNATURE_CONTENTS  Could not fetch signature contents. 
DigitalSignatureValidationResult.CertificateStatus  GENERAL_VALIDATION_PROBLEM  General validation problems (bad signatures, certificate chain is too long, etc.). 
DigitalSignatureValidationResult.CertificateStatus  INVALID  The certificate is not valid against a CA. 
DigitalSignatureValidationResult.CertificateStatus  NOT_YET_VALID  Either the certificate, the OCSP, or the CRL are not yet valid. 
DigitalSignatureValidationResult.CertificateStatus  NOT_YET_VALID_NO_POE  Either the certificate, the OCSP, or the CRL are not yet valid but we don't have proof of existence (POE) of the digital signature. 
DigitalSignatureValidationResult.CertificateStatus  OK  The certificate status is correct, valid. 
DigitalSignatureValidationResult.CertificateStatus  OK_BUT_NOT_CHECKED_AGAINST_CA  The certificate date is correct, but couldn't check against a certificate authority. 
DigitalSignatureValidationResult.CertificateStatus  OK_BUT_REVOCATION_CHECK_FAILED  OCSP certificate revocation check network error. 
DigitalSignatureValidationResult.CertificateStatus  OK_BUT_SELF_SIGNED  The certificate status is valid, but self-signed. 
DigitalSignatureValidationResult.CertificateStatus  REVOKED  The certificate has been revoked. 
DigitalSignatureValidationResult.CertificateStatus  REVOKED_BUT_VALID_IN_THE_PAST  The certificate has been revoked as of today but we have confidence that this certificate was valid in the past, when the signature was created. 
DigitalSignatureValidationResult.CertificateStatus  REVOKED_NO_POE  The certificate has been revoked but we don't have proof of existence (POE) of the digital signature. 
Public Methods
String getLocalizedDescription(Context context)
Returns localized description for the certificate status issues.
static DigitalSignatureValidationResult.CertificateStatus valueOf(String name)
final static CertificateStatus[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final DigitalSignatureValidationResult.CertificateStatus EXPIRED

Either the certificate, the OCSP, or the CRL has expired. According to the spec, this is an invalid state (error).

public static final DigitalSignatureValidationResult.CertificateStatus EXPIRED_BUT_VALID_IN_THE_PAST

Either the certificate, the OCSP, or the CRL has expired as of today but we have confidence that this certificate was valid in the past, when the signature was created. According to the specification, this is an indeterminate state (warning).

public static final DigitalSignatureValidationResult.CertificateStatus EXPIRED_NO_POE

Either the certificate, the OCSP, or the CRL has expired but we don't have proof of existence (POE) of the digital signature. According to the specification, this is an indeterminate state (warning).

public static final DigitalSignatureValidationResult.CertificateStatus FAILED_RETRIEVE_SIGNATURE_CONTENTS

Could not fetch signature contents.

public static final DigitalSignatureValidationResult.CertificateStatus GENERAL_VALIDATION_PROBLEM

General validation problems (bad signatures, certificate chain is too long, etc.).

public static final DigitalSignatureValidationResult.CertificateStatus INVALID

The certificate is not valid against a CA.

public static final DigitalSignatureValidationResult.CertificateStatus NOT_YET_VALID

Either the certificate, the OCSP, or the CRL are not yet valid. According to the spec, this is an invalid state (error).

public static final DigitalSignatureValidationResult.CertificateStatus NOT_YET_VALID_NO_POE

Either the certificate, the OCSP, or the CRL are not yet valid but we don't have proof of existence (POE) of the digital signature. According to the specification, this is an indeterminate state (warning).

public static final DigitalSignatureValidationResult.CertificateStatus OK

The certificate status is correct, valid.

public static final DigitalSignatureValidationResult.CertificateStatus OK_BUT_NOT_CHECKED_AGAINST_CA

The certificate date is correct, but couldn't check against a certificate authority.

public static final DigitalSignatureValidationResult.CertificateStatus OK_BUT_REVOCATION_CHECK_FAILED

OCSP certificate revocation check network error. Either due to invalid OCSP server URL or network timeout.

public static final DigitalSignatureValidationResult.CertificateStatus OK_BUT_SELF_SIGNED

The certificate status is valid, but self-signed.

public static final DigitalSignatureValidationResult.CertificateStatus REVOKED

The certificate has been revoked. According to the spec, this is an invalid state (error).

public static final DigitalSignatureValidationResult.CertificateStatus REVOKED_BUT_VALID_IN_THE_PAST

The certificate has been revoked as of today but we have confidence that this certificate was valid in the past, when the signature was created. According to the specification, this is an indeterminate state (warning).

public static final DigitalSignatureValidationResult.CertificateStatus REVOKED_NO_POE

The certificate has been revoked but we don't have proof of existence (POE) of the digital signature. According to the specification, this is an indeterminate state (warning).

Public Methods

public String getLocalizedDescription (Context context)

Returns localized description for the certificate status issues.

Parameters
context Context used for retrieving localized descriptions.
Returns
  • Localized description for the certificate status issues or null if the status is not an issue.

public static final CertificateStatus[] values ()