Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstAbstractKeyIndex.GetKeys

procedure GetKeys(const aIdentifier: OctetString; aList : IInterfaceList; aUnfiltered: Boolean = False); overload;
Collects every key filed under aIdentifier into aList (there can be several when the index class is not Unique). Use this list-based overload when you want to enumerate all matches at once; pass aUnfiltered = True to skip the key-manager policy filter.
procedure GetKeys(const aIdentifier: OctetString; aProc : tGetKeyProc; aTag : Pointer = nil; aUnfiltered: Boolean = False); overload;
Callback overload: invokes aProc (a plain procedure, with aTag passed through) once per key filed under aIdentifier. Use it to process matches without building an intermediate list; aUnfiltered = True skips policy filtering.
procedure GetKeys(const aIdentifier: OctetString; aProc : tGetKeyMethod; aTag : Pointer = nil; aUnfiltered: Boolean = False); overload;
Callback overload taking a method pointer (aProc) instead of a plain procedure; otherwise identical to the tGetKeyProc version above. Use when the callback needs access to an object instance.
procedure GetKeys(const aIdentifier: OctetString; const aIID : TGUID; const aDataIID : TGUID; aList : IInterfaceList; aUnfiltered: Boolean = False); overload;
Interface-typed list overload: returns only those keys under aIdentifier that expose interface aIID (with associated data aDataIID), casting each to that interface. Use it to fetch, e.g., only the signing-capable or only the certificate view of the matching keys. SupportsIntf short-circuits indexes that can never hold the requested interface.
procedure GetKeys(const aIdentifier: OctetString; const aIID : TGUID; const aDataIID : TGUID; aProc : tGetKeyProc; aTag : Pointer = nil; aUnfiltered: Boolean = False); overload;
Interface-typed callback overload (plain procedure): as the interface-typed list overload, but delivers each aIID-conforming match to aProc.
procedure GetKeys(const aIdentifier: OctetString; const aIID : TGUID; const aDataIID : TGUID; aProc : tGetKeyMethod; aTag : Pointer = nil; aUnfiltered: Boolean = False); overload;
Interface-typed callback overload (method pointer): as above but the callback is a method, for use when it must reach an object instance.