Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.DSI.KeyStorageDB

Classes, interfaces and records

classTstCustomKeyStorageDB

inherits from TstAbstractKeyStorageMultiFormat

property PrivateKeyPassword;
Static password (interpreted as ASCII bytes) used to unlock password-protected private-key blobs read from or written to the database field -- e.g. PKCS#8-encrypted or *.pvk material. Full description »
property OnPassword;
Callback invoked when a password is needed to unlock a protected private-key blob and none (or an additional one) is available from PrivateKeyPassword. Full description »

classTstKeyStorageDB — component reference

inherits from TstCustomKeyStorageDB

property DataSource;
The TDataSource whose linked TDataSet holds the key rows. This is the one required wiring step: assign it (design time or code) before the storage is activated, or activation raises "A DataSource must be assigned". Full description »
property DataField;
Name of the field (blob, string, or binary) that stores the raw key blob for each record. Required -- activation raises "A DataField must be specified" if empty, or an error if the named field is missing or is not one of those field kinds. Works best when each blob holds a single key (e.g. *.pvk/*.cer rather than *.p7c/*.pfx). » member page
property IDField;
Name of the field that uniquely identifies each key record, used as the key's ID value and to Locate/navigate to a row. Full description »
property FormatField;
Optional name of a field holding the stored key's format name. When present it is read back to suggest the correct key format on load and written on save, so the component need not sniff the blob. Leave empty to rely on format auto-detection and on OnSuggestFieldKeyFormat. » member page
property OnSuggestFieldKeyFormat;
Event to suggest which key format(s) apply to a given record when loading, letting the app pick the format from other columns or app logic. Fires in addition to any format read from FormatField. Use it when the format cannot be inferred from the blob alone. » member page
property OnGetNewKeyIDValue;
Event called to produce a new unique ID value when a key is saved and no AutoInc IDField can generate one. Implement it (set aIDValue) whenever IDField names a non-AutoInc field, otherwise saving a new key fails because no ID can be assigned. Not needed for AutoInc IDField or for the empty-IDField sequential case. » member page

classtKeyStorageDB

inherits from TstCustomKeyStorageDB

class function Description: string; override;
Returns the value of rsUseKeyStorageDB.
property DataSource; property DataField; property IDField; property FormatField; property OnSuggestFieldKeyFormat; property OnGetNewKeyIDValue;

Types (enumerations, sets, aliases)

proctGetKeyFormatsDSEvent

  tGetKeyFormatsDSEvent = procedure (Sender  : TObject;
                                     aDataset: TDataset;
                               const aIDValue: string;
                                     aFormats: IInterfaceList) of object;

proctGetKeyIDValueEvent

  tGetKeyIDValueEvent = procedure (Sender  : TObject;
                                   aDataset: TDataset;
                             const aKey    : iUnknown;
                               var aIDValue: string) of object;