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
| FieldName | Fully qualified name of the signature field |
|---|---|
| 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 generation time, serial number, policy and nonce details, chain result, and trust status |
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 | The document is not open, the field does not exist, or the requested timestamp token does not exist |
See also
TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult, SetPAdESSignatureTimeStampToken, NativeTimeStampRevocation