new VerificationOptions()
The class VerificationOptions.
Options pertaining to digital signature verification.
Members
-
<static> SecurityLevel
-
Properties:
Name Type Description e_compatibility_and_archiving
number e_maximum
number -
<static> TimeMode
-
Properties:
Name Type Description e_signing
number e_timestamp
number e_current
number
Methods
-
<static> addTrustedCertificateFromURL(url [, options])
-
Adds a certificate from a url to the store of trusted certificates inside this options object.
Parameters:
Name Type Argument Description url
string The url from which to download the file options
Object <optional>
Additional options Properties
Name Type Description withCredentials
boolean Whether to set the withCredentials property on the XMLHttpRequest customHeaders
Object An object containing custom HTTP headers to be used when downloading the document Returns:
- Type
- Promise.<void>
-
<static> create(in_level)
-
Constructs a set of options for digital signature verification.
Parameters:
Name Type Description in_level
number PDFNet.VerificationOptions.SecurityLevel = { e_compatibility_and_archiving : 0 e_maximum : 1 }
-- the general security level to use. Sets other security settings internally.Returns:
A promise that resolves to an object of type: "PDFNet.VerificationOptions"- Type
- Promise.<PDFNet.VerificationOptions>
-
addTrustedCertificate(in_binary_DER_certificate_buf)
-
Parameters:
Name Type Description in_binary_DER_certificate_buf
ArrayBuffer | Int8Array | Uint8Array | Uint8ClampedArray Returns:
- Type
- Promise.<void>
-
destroy()
-
Destructor
Returns:
- Type
- Promise.<void>
-
enableDigestVerification(in_on_or_off)
-
Sets a flag that can turn on or off the verification of the digest (cryptographic hash) component of a digital signature.
Parameters:
Name Type Description in_on_or_off
boolean - A boolean. Returns:
- Type
- Promise.<void>
-
enableModificationVerification(in_on_or_off)
-
Sets a flag that can turn on or off the verification of the permissibility of any modifications made to the document after the signing of the digital signature being verified, in terms of the document and field permissions specified by the digital signature being verified.
Parameters:
Name Type Description in_on_or_off
boolean - A boolean. Returns:
- Type
- Promise.<void>
-
enableTrustVerification(in_on_or_off)
-
Sets a flag that can turn on or off the verification of the trust status of a digital signature.
Parameters:
Name Type Description in_on_or_off
boolean - A boolean. Returns:
- Type
- Promise.<void>
-
removeTrustedCertificate(in_binary_DER_certificate_buf)
-
Parameters:
Name Type Description in_binary_DER_certificate_buf
ArrayBuffer | Int8Array | Uint8Array | Uint8ClampedArray Returns:
- Type
- Promise.<void>