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
| SignatureIndex | Zero-based signature field index |
|---|---|
| SignerIndex | Zero-based signer index of the timestamp token |
| RevocationMode | srmNone, srmCacheOnly, or srmOnline for the TSA certificate chain check |
| ExpectedPolicyOID | Expected policy OID dotted string; empty skips policy matching |
| ExpectedNonceHex | Expected nonce as hexadecimal; empty skips nonce matching |
| Report | Receives the timestamp verification report |
Return values
| vsValid | Token signature, message imprint, TSA checks, policy, nonce, and chain all passed |
|---|---|
| vsInvalid | The ByteRange is invalid or one of the timestamp checks failed |
| vsUnknown | No document is open or the field index is out of range |
See also
TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult, NativeTimeStampRevocation