VerifySignatureTimeStampEx

Security and signatures

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

Description

Validates one signature timestamp of the selected CMS signer with an explicit revocation mode and optional expected policy OID and nonce.

The field index is resolved to a name and the work is delegated to VerifySignatureTimeStampExByName.

Syntax

Delphi

Function TPDFlibSignatureVerifier.VerifySignatureTimeStampEx(SignatureIndex, SignerIndex,
  TimeStampIndex: Integer; RevocationMode: TPDFlibSignatureRevocationMode;
  Const ExpectedPolicyOID, ExpectedNonceHex: AnsiString;
  Out Report: TPDFlibTimeStampVerificationReport): TPDFlibSignatureVerifierResult;

Parameters

SignatureIndexZero-based signature field index
SignerIndexZero-based CMS signer index within the signature
TimeStampIndexZero-based index among the signer's timestamp attributes
RevocationModesrmNone, srmCacheOnly, or srmOnline for the TSA certificate chain check
ExpectedPolicyOIDExpected policy OID dotted string; empty skips policy matching
ExpectedNonceHexExpected nonce as hexadecimal; empty skips nonce matching
ReportReceives the timestamp verification report

Return values

vsValidToken signature, message imprint, TSA checks, policy, nonce, and chain all passed
vsInvalidThe signer's signature value could not be read or one of the timestamp checks failed
vsUnknownNo document is open, the field index is out of range, or the requested timestamp token does not exist

See also

TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult, SetPAdESSignatureTimeStampToken, NativeTimeStampRevocation