TPDFlibSignatureRevocationMode
Data types, security and signatures
Description
TPDFlibSignatureRevocationMode controls how much revocation checking the signature verifier performs when it validates a signer or timestamp certificate chain.
The value is an argument of VerifySignerCertificateChainEx, VerifyAdESHistorical, VerifyDocumentTimeStampEx and VerifySignatureTimeStampEx. The chain and timestamp reports record it in their RevocationMode field so a caller can tell which policy produced the verdict.
Syntax
Delphi
TPDFlibSignatureRevocationMode = (srmNone, srmCacheOnly, srmOnline);Values
| srmNone | Validates the chain without consulting revocation sources: no CRL or OCSP evidence changes the verdict, and the Windows chain engine is limited to cached URL retrieval |
|---|---|
| srmCacheOnly | Checks revocation against cached engine state plus the certificates, CRLs and OCSP responses supplied by the DSS or VRI; no network request is made |
| srmOnline | Starts with cached and document evidence, then retrieves CRL and OCSP data from distribution points and AIA locations for certificates that still lack good coverage, within the request and size budgets of the command |
Remarks
srmNone can report vsValid for a certificate that a CRL would list as revoked, because no revocation source is consulted; treat the mode as a trust-only check.
In AdES historical validation, srmCacheOnly and srmOnline accept current DSS evidence as historical only when a trusted document timestamp covers the complete current file; otherwise the report ends with ahsEvidenceNotArchived.
The mode is recorded in TPDFlibSignatureChainReport.RevocationMode and TPDFlibTimeStampVerificationReport.RevocationMode.
The native backend maps the three values onto its trust-only, supplied-evidence and online retrieval paths; the Windows chain engine maps them onto its own revocation flags.
See also
TPDFlibSignatureVerifier, VerifySignerCertificateChainEx, VerifyAdESHistorical, VerifyDocumentTimeStampEx, VerifySignatureTimeStampEx, NativeCRLRevocation, NativeOCSPRevocation