java.lang.Object | |
↳ | com.pspdfkit.signatures.DigitalSignatureValidationResult |
Detailed status about validity of a DigitalSignatureInfo
. For overall status of the
validity of the signature, see return status of getValidationStatus()
method.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | DigitalSignatureValidationResult.CertificateStatus | Status of the certificate that was used for signing the document. | |||||||||
enum | DigitalSignatureValidationResult.DocumentIntegrityStatus | Status of the signed document. | |||||||||
enum | DigitalSignatureValidationResult.ValidationProblem | Problems that prevented proper validation of a signature. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final Creator<DigitalSignatureValidationResult> | CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | describeContents() | ||||||||||
String |
getCertificateChainValidationErrorMessage()
Returns an English string describing the reason for certificate validation failure.
| ||||||||||
DigitalSignatureValidationResult.CertificateStatus |
getCertificateChainValidationStatus()
Returns status of certificate verification.
| ||||||||||
DigitalSignatureValidationResult.DocumentIntegrityStatus |
getDocumentIntegrityStatus()
Returns status of document integrity.
| ||||||||||
List<DigitalSignatureValidationResult.ValidationProblem> | getProblems() | ||||||||||
ValidationStatus |
getValidationStatus()
Returns overall validity status of the digital signature.
| ||||||||||
String | toString() | ||||||||||
boolean |
wasDocumentModified()
Returns if there was any appending done to the document after this signature.
| ||||||||||
void | writeToParcel(Parcel dest, int flags) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns an English string describing the reason for certificate validation failure.
null
if it fails.
Returns status of certificate verification. If this is not OK
or
OK_BUT_SELF_SIGNED
, more information can be retrieved with getCertificateChainValidationErrorMessage()
.
DigitalSignatureValidationResult.CertificateStatus
describing the status of certificate validity.
Returns status of document integrity. If the document content has been changed or tampered
with, this will return an error status. Note that this does not check if there was any
content or annotations added to the document - use wasDocumentModified()
check for
that.
DigitalSignatureValidationResult.DocumentIntegrityStatus
enum describing the status of document integrity.
Returns of list of problems when validation status is either WARNING
or ERROR
. If the list contains CERTIFICATE_CHAIN_FAILURE
, more information can be retrieved with getCertificateChainValidationStatus()
and getCertificateChainValidationErrorMessage()
. If the list contains DOCUMENT_INTEGRITY_FAILURE
, more information can be retrieved with getDocumentIntegrityStatus()
.
Returns if there was any appending done to the document after this signature. If the content
of signed area has changed, getDocumentIntegrityStatus()
will report an integrity
failure. If there was any addition (new annotation etc.) added to the document, getDocumentIntegrityStatus()
will report OK
and this will
return true
.
true
if there was anything appended after the document was signed, false
otherwise.