VerifySignatureTimeStampExByName

security and signatures

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

Description

Validates one id-aa-signatureTimeStampToken attribute of the selected CMS signer in the named field against that signer's signatureValue.

The timestamp message imprint must match the signature value, and the token's own signature, TSA key usage and name binding, expected policy and nonce, and certificate chain are checked independently in the report.

An unreadable signer signature value yields vsInvalid; a missing token at the requested index yields vsUnknown.

Syntax

Delphi

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

Parameters

FieldNameFully qualified name of the signature field
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 generation time, serial number, policy and nonce details, chain result, and trust status

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
vsUnknownThe document is not open, the field does not exist, or the requested timestamp token does not exist

See also

TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult, SetPAdESSignatureTimeStampToken, NativeTimeStampRevocation