LoadLOTLFromString
security and signatures
Requires the Enterprise edition — declared in the Enterprise unit PDFlibEUTSL, which other editions do not include
Description
Loads an EU list of trusted lists from an in-memory XML string. The document must carry exactly one enveloped XML signature attached to the document root, signed with a strong digest by a certificate pinned through AddLOTLSigningCertificateDER or AddLOTLSigningCertificateFromFile; SHA-1, MD5 and RIPEMD variants are rejected. DTDs and entity declarations are prohibited before parsing.
The document must declare the EU list-of-the-lists TSL type, carry a plausible issue time and next-update time, and contain between 1 and 64 national trusted-list pointers, each with a territory, a location and at least one signing certificate. A LOTL past its next-update time fails unless AllowExpiredLists is set.
On success the new pointers replace the old set atomically and every loaded national service is discarded, so the referenced TSLs must be loaded again afterwards. A failed load leaves the previous snapshot intact.
Syntax
Delphi
Function TPDFlibEUTSLTrustSource.LoadLOTLFromString(Const XMLData: AnsiString): Boolean;Parameters
| XMLData | The complete LOTL XML document; empty input or input longer than MaxXMLBytes is rejected |
|---|
Return values
| True | The LOTL was verified, its pointers were installed and the service set was reset |
|---|---|
| False | Parsing, signature, structure or expiry validation failed; GetLastError describes the first failure |
Remarks
Because no source location exists for a string, GetLOTLLocation stays empty after this call; the file and URL loaders record their source instead.
If the pinned trust configuration changes while the document is being verified, the load aborts instead of committing pointers validated against a stale pin set.