TStructStrArray

Data types

Description

TStructStrArray is a dynamic array of AnsiString, declared in the unit PDFlibSmartAccess. The declaration does not fix what an element holds; the method that takes or fills the array does.

In the trust source interface every element is one X.509 certificate in DER encoding, stored as raw bytes. TPDFlibSignatureTrustSource declares the two abstract methods that use the array, and TPDFlibEUTSLTrustSource implements both. Both classes belong to the Enterprise edition.

GetTrustAnchors(VerificationTime, Certificates) hands out the certificates of the trusted services as a TStructStrArray. EvaluateCertificateChain(Certificates, VerificationTime, Report) receives a chain that the verifier has already validated, with the leaf certificate in element 0, and classifies it into a TPDFlibSignatureQualificationReport.

Syntax

TStructStrArray= Array Of AnsiString;

Remarks

An unassigned variable is Nil, and GetTrustAnchors starts from Nil. It appends a certificate only when no element holds the same bytes, skips empty strings, and returns True only when at least one certificate was appended.

With AllowExpiredLists left at its default of False, an expired list of trusted lists makes GetTrustAnchors return False and leaves the array empty.

EvaluateCertificateChain evaluates the chain a second time at the notBefore time of the leaf certificate in element 0. An empty array returns False.

The same array type also carries name lists and byte strings in the structure-tree code of PDFlibSmartAccess, so outside the trust source methods read an element according to the method that supplies it.

See also

TPDFlibEUTSLTrustSource, TPDFlibSignatureTrustSource, TPDFlibSignatureQualificationReport, TPLDERArray