public static final enum

DigitalSignatureValidationResult.DocumentIntegrityStatus

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

Class Overview

Status of the signed document. The default integrity of a signed and non-modified document is OK.

Summary

Enum Values
DigitalSignatureValidationResult.DocumentIntegrityStatus  FAILED_COMPUTE_DIGEST  Could not compute digest for the document range. 
DigitalSignatureValidationResult.DocumentIntegrityStatus  FAILED_ENCRYPTION_PADDING  Encryption padding is wrong. 
DigitalSignatureValidationResult.DocumentIntegrityStatus  FAILED_RETRIEVE_BYTE_RANGE  Could not fetch byte range. 
DigitalSignatureValidationResult.DocumentIntegrityStatus  FAILED_RETRIEVE_PUBLIC_KEY  Signature doesn't contain a public key. 
DigitalSignatureValidationResult.DocumentIntegrityStatus  FAILED_RETRIEVE_SIGNATURE_CONTENTS  Could not fetch signature contents. 
DigitalSignatureValidationResult.DocumentIntegrityStatus  FAILED_RETRIEVE_SIGNING_CERTIFICATE  Signature doesn't contain a signing certificate. 
DigitalSignatureValidationResult.DocumentIntegrityStatus  GENERAL_FAILURE  General validation problems. 
DigitalSignatureValidationResult.DocumentIntegrityStatus  OK  The document has not been modified since the last time it was signed. 
DigitalSignatureValidationResult.DocumentIntegrityStatus  TAMPERED_DOCUMENT  The document has been tampered with since the last time it was signed. 
Public Methods
String getLocalizedDescription(Context context)
Returns localized description for the document integrity status issue.
static DigitalSignatureValidationResult.DocumentIntegrityStatus valueOf(String name)
final static DocumentIntegrityStatus[] 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.DocumentIntegrityStatus FAILED_COMPUTE_DIGEST

Could not compute digest for the document range.

public static final DigitalSignatureValidationResult.DocumentIntegrityStatus FAILED_ENCRYPTION_PADDING

Encryption padding is wrong.

public static final DigitalSignatureValidationResult.DocumentIntegrityStatus FAILED_RETRIEVE_BYTE_RANGE

Could not fetch byte range.

public static final DigitalSignatureValidationResult.DocumentIntegrityStatus FAILED_RETRIEVE_PUBLIC_KEY

Signature doesn't contain a public key.

public static final DigitalSignatureValidationResult.DocumentIntegrityStatus FAILED_RETRIEVE_SIGNATURE_CONTENTS

Could not fetch signature contents.

public static final DigitalSignatureValidationResult.DocumentIntegrityStatus FAILED_RETRIEVE_SIGNING_CERTIFICATE

Signature doesn't contain a signing certificate.

public static final DigitalSignatureValidationResult.DocumentIntegrityStatus GENERAL_FAILURE

General validation problems.

public static final DigitalSignatureValidationResult.DocumentIntegrityStatus OK

The document has not been modified since the last time it was signed.

public static final DigitalSignatureValidationResult.DocumentIntegrityStatus TAMPERED_DOCUMENT

The document has been tampered with since the last time it was signed.

Public Methods

public String getLocalizedDescription (Context context)

Returns localized description for the document integrity status issue.

Parameters
context Context used for retrieving localized descriptions.
Returns
  • Localized description for the document integrity status issues or null if the integrity is valid (i.e. statuses OK or TAMPERED_DOCUMENT).

public static final DocumentIntegrityStatus[] values ()