Struct StoreCapabilities

Properties of one credential store that can affect application behavior.

struct StoreCapabilities;

Read capabilities when choosing a store, presenting storage options to the user, or deciding where an operation should run.

Fields

NameTypeDescription
blocking StoreBlockingWhether normal operations can block or ask the user to interact.
concurrency StoreConcurrencyHow one store instance may be shared between threads.
confirmsLogicalDeletion boolWhether successful remove() means this store will no longer return the credential.
mobility StoreMobilityWhere saved credentials may become available.
persistent boolWhether saved credentials are intended to survive application restart.
protection StoreProtectionWhere protection of saved credentials is provided.
unlockModel StoreUnlockModelWho controls unlocking before saved credentials can be used.

Examples

const caps = store.capabilities;

if (caps.blocking == StoreBlocking.mayPrompt)
{
    // Run the operation away from the render/UI thread.
}