Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstBaseSaveableKeyContainer.LoadFromFile

procedure LoadFromFile(const aSrc : TFileName; aHashAlg: tHashAlgorithm = haDefault); virtual;
Loads the container's entries from a file (its GetDefaultFileName when aSrc is empty). The file is the signed INI-style text produced by SaveTo*; the digest is recomputed and DoVerifySignature is called, so a tampered or mismatched file raises. aHashAlg = haDefault means take the algorithm named in the file's Signature section. Used to restore a persisted index/filter at startup.