EvaluateCertificateChain
security and signatures
Requires the Enterprise edition — declared in the Enterprise unit PDFlibEUTSL, which other editions do not include
Description
Classifies an already validated certificate chain into a TPDFlibSignatureQualificationReport using the loaded trusted lists. This is the override TPDFlibSignatureVerifier drives; the report is also exposed through the verifier chain report after verification.
The chain is evaluated twice: at VerificationTime and at the leaf certificate issuance time, its notBefore. A qualified status stands only when the trusted lists granted it at both times; when the two results disagree the weaker one is written to the report. A certificate issued before the service was granted, or while it was suspended, is reported as not qualified.
When the issuance-time evaluation cannot be made at all, because the leaf is missing, its notBefore is unreadable, or the notBefore is not earlier than the verification time, the method reports not qualified and returns False so the caller degrades the overall status instead of trusting a one-sided result.
Syntax
Delphi
Function TPDFlibEUTSLTrustSource.EvaluateCertificateChain(Const Certificates: TStructStrArray; VerificationTime: TDateTime; Out Report: TPDFlibSignatureQualificationReport): Boolean; Override;Parameters
| Certificates | DER-encoded chain with the leaf first; an empty array fails the evaluation |
|---|---|
| VerificationTime | Time of the signature validation; zero means now |
| Report | Receives territory, service and qualifier details, the qualified status, and the separate issuance-time status |
Return values
| True | A matching qualified CA service classified the chain and the report is authoritative |
|---|---|
| False | No service matched at either time, the lists are expired under the fail-closed rule, or the issuance-time result cannot confirm the qualification |
Remarks
EvaluateChainAt is the direct single-time query form of the same classification.
Report.IssuanceTime and Report.IssuanceStatus give the second evaluation when it was performed.
See also
TPDFlibEUTSLTrustSource, TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult