LoadTSLFromString

security and signatures

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

Description

Loads one national trusted service list from an in-memory XML string for the LOTL pointer at PointerIndex. The document must be signed by a certificate carried in that pointer, declare the EU generic TSL type, and name the same scheme territory the pointer declares; a mismatched territory is rejected. The document size is checked against MaxXMLBytes, DTDs and entities are prohibited, and a list past its next-update time fails unless AllowExpiredLists is set.

On success the services parsed from the document replace any previously loaded services of the same territory, leaving services of other territories in place.

Syntax

Delphi

Function TPDFlibEUTSLTrustSource.LoadTSLFromString(PointerIndex: Integer; Const XMLData: AnsiString): Boolean;

Parameters

PointerIndexZero-based index of the LOTL pointer whose signing certificates and territory the document must match
XMLDataThe complete national TSL XML document

Return values

TrueThe trusted list was verified and its services replaced the previous services of that territory
FalseThe pointer index is out of range, or signature, structure or expiry validation failed; GetLastError describes the failure

Remarks

If the LOTL changes while the trusted list is being verified, the load aborts rather than committing services against a stale pointer set.

See also

TPDFlibEUTSLTrustSource, TPDFlibSignatureVerifier