new VerificationResult()
The class VerificationResult.
The result of a verification operation performed on a digital signature.
Members
-
<static> DigestStatus
-
Properties:
Name Type Description e_digest_invalid
number e_digest_verified
number e_digest_verification_disabled
number e_weak_digest_algorithm_but_digest_verifiable
number e_no_digest_status
number e_unsupported_encoding
number -
<static> DocumentStatus
-
Properties:
Name Type Description e_no_error
number e_corrupt_file
number e_unsigned
number e_bad_byteranges
number e_corrupt_cryptographic_contents
number -
<static> ModificationPermissionsStatus
-
Properties:
Name Type Description e_invalidated_by_disallowed_changes
number e_has_allowed_changes
number e_unmodified
number e_permissions_verification_disabled
number e_no_permissions_status
number -
<static> TrustStatus
-
Properties:
Name Type Description e_trust_verified
number e_untrusted
number e_trust_verification_disabled
number e_no_trust_status
number
Methods
-
destroy()
-
Destructor
Returns:
- Type
- Promise.<void>
-
getDigestStatus()
-
Retrieves the digest-related result condition associated with a digital signature verification operation.
Returns:
A promise that resolves to a DigestStatus-type enumeration value.- Type
- Promise.<number>
Example
Return value enum: <pre> PDFNet.VerificationResult.DigestStatus = { e_digest_invalid : 0 e_digest_verified : 1 e_digest_verification_disabled : 2 e_weak_digest_algorithm_but_digest_verifiable : 3 e_no_digest_status : 4 e_unsupported_encoding : 5 } </pre>
-
getDigitalSignatureField()
-
Returns:
A promise that resolves to an object of type: "PDFNet.DigitalSignatureField"- Type
- Promise.<PDFNet.DigitalSignatureField>
-
getDisallowedChanges()
-
Retrieves a list of informational structures regarding any disallowed changes that have been made to the document since the signature associated with this verification result was signed.
Returns:
A promise that resolves to a collection of DisallowedChange objects.- Type
- Promise.<Array.<PDFNet.DisallowedChange>>
-
getDocumentStatus()
-
Retrieves the document-related result condition associated with a digital signature verification operation.
Returns:
A promise that resolves to a DocumentStatus-type enumeration value.- Type
- Promise.<number>
Example
Return value enum: <pre> PDFNet.VerificationResult.DocumentStatus = { e_no_error : 0 e_corrupt_file : 1 e_unsigned : 2 e_bad_byteranges : 3 e_corrupt_cryptographic_contents : 4 } </pre>
-
getPermissionsStatus()
-
Retrieves the result condition about permissions checks performed on any unsigned modifications associated with a digital signature verification operation.
Returns:
A promise that resolves to a ModificationPermissionsStatus-type enumeration value.- Type
- Promise.<number>
Example
Return value enum: <pre> PDFNet.VerificationResult.ModificationPermissionsStatus = { e_invalidated_by_disallowed_changes : 0 e_has_allowed_changes : 1 e_unmodified : 2 e_permissions_verification_disabled : 3 e_no_permissions_status : 4 } </pre>
-
getSignersDigestAlgorithm()
-
Retrieves an enumeration value representing the digest algorithm used to sign the signature that is associated with this verification result.
Returns:
A promise that resolves to a DigestAlgorithm enumeration value.- Type
- Promise.<number>
Example
Return value enum: <pre> PDFNet.DigestAlgorithm.Type = { e_SHA1 : 0 e_SHA256 : 1 e_SHA384 : 2 e_SHA512 : 3 e_RIPEMD160 : 4 e_unknown_digest_algorithm : 5 } </pre>
-
getTrustStatus()
-
Retrieves the trust-related result condition associated with a digital signature verification operation.
Returns:
A promise that resolves to a TrustStatus-type enumeration value.- Type
- Promise.<number>
Example
Return value enum: <pre> PDFNet.VerificationResult.TrustStatus = { e_trust_verified : 0 e_untrusted : 1 e_trust_verification_disabled : 2 e_no_trust_status : 3 } </pre>
-
getTrustVerificationResult()
-
Retrieves the detailed result associated with the trust step of the verification operation that returned this VerificationResult, if such a detailed trust result is available. Must call HasTrustVerificationResult first and check for a true result.
Returns:
A promise that resolves to an optional TrustVerificationResult.- Type
- Promise.<PDFNet.TrustVerificationResult>
-
getVerificationStatus()
-
Retrieves the main verification status. The main status is determined based on the other statuses.
Returns:
A promise that resolves to a boolean representing whether or not the verification operation was completely successful.- Type
- Promise.<boolean>
-
hasTrustVerificationResult()
-
Returns whether there is a detailed TrustVerificationResult in this VerificationResult or not.
Returns:
A promise that resolves to a boolean.- Type
- Promise.<boolean>