VerifyDocumentTimeStampEx

Security and signatures

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

Description

Validates the document timestamp in the field selected by zero-based index with an explicit revocation mode and optional expected policy OID and nonce.

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

Syntax

Delphi

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

Parameters

SignatureIndexZero-based signature field index
SignerIndexZero-based signer index of the timestamp token
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 ByteRange is invalid or one of the timestamp checks failed
vsUnknownNo document is open or the field index is out of range

See also

TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult, NativeTimeStampRevocation