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

SignatureIndexZero-based signature field index
SignerIndexZero-based CMS signer index within the signature
ReportReceives subfilter, coverage, ByteRange details, signer count, and permission constraints for the selected signature

Return values

vsValidThe selected signer's signature authenticates the bytes its ByteRange covers
vsInvalidThe ByteRange is invalid or the cryptographic integrity check failed
vsUnknownNo document is open or the signature field index is out of range

See also

TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult, EnumSignatures