Class MemoryCredentialStore

Deterministic, thread-confined in-memory credential store.

class MemoryCredentialStore
  : CredentialStore;

This backend exists for contract qualification, tests, examples, and consumers that explicitly need ephemeral credentials. It is not a secure persistent store and does not provide locking.

Call clearAll when prompt wiping of all retained test credentials is required. The backend deliberately does not rely on a GC class finalizer to traverse GC-managed associative-array state.

Constructors

NameDescription
this (credentialNamespace) Bind this store instance to one validated application namespace.

Properties

NameTypeDescription
capabilities[get] StoreCapabilitiesDescribe how this store behaves.
credentialNamespace[get] CredentialNamespaceApplication namespace this store belongs to.

Methods

NameDescription
clearAll () Securely wipe all records currently retained by this test backend.
remove (handle) Remove a saved credential.
save (secret, handle) Save a new credential.
update (handle, replacement) Replace the value of an existing credential.
withSecret (handle, callback) Use a saved credential.