Enum DigitalSignatureValidationResult.DocumentIntegrityStatus
-
- All Implemented Interfaces:
public enum DigitalSignatureValidationResult.DocumentIntegrityStatus
Status of the signed document. The default integrity of a signed and non-modified document is OK.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OK
The document has not been modified since the last time it was signed.
TAMPERED_DOCUMENT
The document has been tampered with since the last time it was signed.
FAILED_RETRIEVE_SIGNATURE_CONTENTS
Could not fetch signature contents.
FAILED_RETRIEVE_BYTE_RANGE
Could not fetch byte range.
FAILED_COMPUTE_DIGEST
Could not compute digest for the document range.
FAILED_RETRIEVE_SIGNING_CERTIFICATE
Signature doesn't contain a signing certificate.
FAILED_RETRIEVE_PUBLIC_KEY
Signature doesn't contain a public key.
FAILED_ENCRYPTION_PADDING
Encryption padding is wrong.
FAILED_UNSUPPORTED_SIGNATURE_TYPE
The signature type is not supported (for example, old AdobePKCS7SHA1 format).
FAILED_TAMPERED_OR_INVALID_TIMESTAMP
The digital signature contains a timestamp that is not valid or the timestamped data was tampered with.
GENERAL_FAILURE
General validation problems.
-
Method Summary
Modifier and Type Method Description String
getLocalizedDescription(@NonNull() Context context)
Returns localized description for the document integrity status issue. static Array<DigitalSignatureValidationResult.DocumentIntegrityStatus>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static DigitalSignatureValidationResult.DocumentIntegrityStatus
valueOf(String name)
Returns the enum constant of this type with the specified name. -
-
Method Detail
-
getLocalizedDescription
@Nullable() String getLocalizedDescription(@NonNull() 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).
-
values
static Array<DigitalSignatureValidationResult.DocumentIntegrityStatus> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static DigitalSignatureValidationResult.DocumentIntegrityStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-