Function findSecurityKeys

Find the security keys currently available to the application.

credentials.store.CredentialStatus findSecurityKeys(
  out SecurityKeyInfo[] keys
) @safe;

Use this before setup or unlock to let the user choose a connected key.

Parameters

NameDescription
keys Receives the connected keys.

Returns

ok when discovery succeeded. An empty array means no key is connected.

Examples

SecurityKeyInfo[] keys;

if (findSecurityKeys(keys) == CredentialStatus.ok)
{
    foreach (key; keys)
        showKeyChoice(key.manufacturer, key.product);
}