GetSignerCertificateByIndex

security and signatures

Requires the Enterprise edition — part of the Enterprise signature verification surface in TPDFlibSignatureVerifier (unit PDFlibEntSignVerify)

Description

Decodes the signer certificate of an explicitly selected signature field and signer and summarises its identity fields.

The field index is resolved to a name and the call delegates to GetSignerCertificateByName; the signature itself is not verified here.

Syntax

Delphi

Function TPDFlibSignatureVerifier.GetSignerCertificateByIndex(SignatureIndex, SignerIndex: Integer; Out Cert: TPDFlibSignatureCertificate): Boolean;

Parameters

SignatureIndexZero-based signature field index
SignerIndexZero-based CMS signer index within the signature
CertReceives subject, issuer, serial number, and UTC validity window of the signer certificate

Return values

TrueThe signer certificate was decoded and the summary was filled
FalseNo document is open, the field index is out of range, or the signer certificate cannot be decoded from the CMS; the record is returned cleared

See also

TPDFlibSignatureCertificate, TPDFlibSignatureVerifier, EnumSignatures