VerifyAdESHistorical

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 runs AdES historical validation for the selected signer at the requested UTC time.

The field index is resolved to a name and the call delegates to VerifyAdESHistoricalByName, which validates signature integrity, the signer chain, and the timestamp evidence that can move the effective validation time.

Syntax

Delphi

Function TPDFlibSignatureVerifier.VerifyAdESHistorical(SignatureIndex, SignerIndex: Integer;
  RevocationMode: TPDFlibSignatureRevocationMode;
  ValidationTime: TDateTime;
  Out Report: TPDFlibAdESHistoricalValidationReport): TPDFlibSignatureVerifierResult;

Parameters

SignatureIndexZero-based signature field index
SignerIndexZero-based CMS signer index within the signature
RevocationModesrmNone lets a trusted timestamp supply the historical control time; srmCacheOnly and srmOnline additionally require an archived whole-document timestamp before DSS evidence counts as historical
ValidationTimeUTC validation time; 0 selects the current UTC time
ReportReceives integrity, requested and effective chain reports, best signature and archive times, proof source, timestamp counts, and the historical status

Return values

vsValidThe chain is valid at the requested time (ahsValidAtRequestedTime) or at a trusted timestamp-derived proof time (ahsValidAtProofTime)
vsInvalidIntegrity failed, no trusted proof exists, the evidence is not archived, or the chain is invalid at every derived control time
vsUnknownNo document is open or the field index is out of range

See also

TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult, ApplyPAdESLongTermValidation, SetPAdESSignatureTimeStampToken, VerifyAuditEvidenceEnvelope