GetTrustAnchors

Security and signatures

Requires the Enterprise edition — declared in the Enterprise unit PDFlibEUTSL, which other editions do not include

Description

Collects the DER-encoded trust anchors the loaded trusted lists grant at one point in time. A service contributes the certificates of its state current at VerificationTime when that state carries a trusted status and its type is an anchor service, which covers qualified and public-key certification authorities and the qualified timestamp service types. Duplicates are collapsed, so each certificate appears once.

This is the hook TPDFlibSignatureVerifier invokes on the source; applications normally receive the anchors indirectly through verifier chain validation rather than calling the method directly.

Syntax

Delphi

Function TPDFlibEUTSLTrustSource.GetTrustAnchors(VerificationTime: TDateTime; Out Certificates: TStructStrArray): Boolean; Override;

Parameters

VerificationTimePoint in time the service states are selected for; zero means now
CertificatesReceives the unique DER-encoded anchors; the array is empty on failure

Return values

TrueAt least one anchor is trusted at the requested time
FalseNo service supplies an anchor, or the LOTL has passed its next-update time while AllowExpiredLists is False

Remarks

Services past their own next-update time are skipped under the same fail-closed rule.

Anchor states are read from the service history, so a verification time inside a withdrawn state still yields that state anchors.

See also

TPDFlibEUTSLTrustSource, TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult