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
| SignatureIndex | Zero-based signature field index |
|---|---|
| SignerIndex | Zero-based CMS signer index within the signature |
| TimeStampIndex | Zero-based index among the signer's timestamp attributes |
| 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 signer's signature value could not be read or one of the timestamp checks failed |
| vsUnknown | No document is open, the field index is out of range, or the requested timestamp token does not exist |
See also
TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult, SetPAdESSignatureTimeStampToken, NativeTimeStampRevocation