LTV verifier is used to verify signature in LTV work flow. Before use this class to verify signature(s), please ensure verify mode has been set by function LTVVerifier.SetVerifyMode.
Foxit PDF SDK has a default revocation callback for LTV verifier. If user wants to use customized revocation callback, please refer to function LTVVerifier.SetRevocationCallback.
If user wants to trust some certificates, please refer to function LTVVerifier.SetTrustedCertStoreCallback.
- Examples
- /Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.
◆ AddDSS()
Add the verify result (as VRI information) of a signature to the DSS.
- Parameters
-
| [in] | signature_verify_result | A signature verify result to be added to DSS. |
- Returns
- None.
◆ constructor()
| LTVVerifier.constructor |
( |
document |
, |
|
|
is_verify_signature |
, |
|
|
use_expired_tst |
, |
|
|
ignore_doc_info |
, |
|
|
time_type |
|
|
) |
| |
Constructor, with parameters.
- Parameters
-
◆ IsEmpty()
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
- Returns
- true means current object is empty, while false means not.
◆ SetRevocationCallback()
| LTVVerifier.SetRevocationCallback |
( |
callback |
| ) |
|
Set a customized RevocationCallback object.
If no customized revocation callback is set by this function, Foxit PDF SDK will use a default one.
- Parameters
-
| [in] | callback | A customized revocation callback object, which is implemented based on callback class RevocationCallback. This should not be null. |
- Returns
- None.
◆ SetTrustedCertStoreCallback()
| LTVVerifier.SetTrustedCertStoreCallback |
( |
callback |
| ) |
|
Set a customized TrustedCertStoreCallback object if user wants to trust some certificates.
If no trusted cert store callback object is set by this function, no certificate will be trusted during verifying process.
- Parameters
-
| [in] | callback | A customized trusted cert store callback object, which is implemented based on callback class TrustedCertStoreCallback. This can be set to null which means not to use it. |
◆ SetVerifyMode()
| LTVVerifier.SetVerifyMode |
( |
mode |
| ) |
|
Set the verifying mode to specify which validation process is to be used.
Please ensure to set the verify mode before doing verifying.
- Parameters
-
| [in] | mode | The verify mode used for express verify process. Please refer to values starting from LTVVerifier.e_VerifyModeAcrobat and this should be one of these values. |
- Returns
- None.
◆ Verify()
Verify all the signatures in the PDF document which is used to constructed current object.
If verify mode is LTVVerifier.e_VerifyModeAcrobat, the verifying process will stop immediately when fail to verify any signature and return verify results for successfully verified signatures only. If verify mode is LTVVerifier.e_VerifyModeAcrobat, all the signatures will be verified and return verify results for all the signatures.
- Returns
- An array of signature verify results.
◆ VerifySignature()
| LTVVerifier.VerifySignature |
( |
signature |
| ) |
|
Verify the target signature in the PDF document which is used to constructed current object.
- Parameters
-
- Returns
- An array of signature verify result.
◆ e_SignatureCreationTime
| LTVVerifier.e_SignatureCreationTime |
|
static |
Enumeration for time type.
Values of this enumeration should be used alone.
Use signature creation time.
◆ e_VerifyModeAcrobat
| LTVVerifier.e_VerifyModeAcrobat |
|
static |
Enumeration for verifying mode.
Values of this enumeration should be used alone.
Use Acrobat validation process.
◆ e_VRICreationTime
| LTVVerifier.e_VRICreationTime |
|
static |
Use the creation time of VRI dictionary of a signature.
- Note
- VRI means "validation-related information".