VerifySignatureByIndex
Security and signatures
Requires the Enterprise edition — part of the Enterprise signature verification surface in TPDFlibSignatureVerifier (unit PDFlibEntSignVerify)
Description
Selects a signature field by zero-based index and one of its CMS signers by zero-based index, then validates the signature and fills a detailed verification report.
The work itself is done by VerifySignatureByName; the index is resolved to the fully qualified field name first.
Syntax
Delphi
Function TPDFlibSignatureVerifier.VerifySignatureByIndex(SignatureIndex, SignerIndex: Integer;
Out Report: TPDFlibSignatureVerificationReport): TPDFlibSignatureVerifierResult;Parameters
| SignatureIndex | Zero-based signature field index |
|---|---|
| SignerIndex | Zero-based CMS signer index within the signature |
| Report | Receives subfilter, coverage, ByteRange details, signer count, and permission constraints for the selected signature |
Return values
| vsValid | The selected signer's signature authenticates the bytes its ByteRange covers |
|---|---|
| vsInvalid | The ByteRange is invalid or the cryptographic integrity check failed |
| vsUnknown | No document is open or the signature field index is out of range |
See also
TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult, EnumSignatures