Class MemoryCredentialStore
Deterministic, thread-confined in-memory credential store.
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
| Name | Description |
|---|---|
this
(credentialNamespace)
|
Bind this store instance to one validated application namespace. |
Properties
| Name | Type | Description |
|---|---|---|
capabilities[get]
|
StoreCapabilities | Describe how this store behaves. |
credentialNamespace[get]
|
CredentialNamespace | Application namespace this store belongs to. |
Methods
| Name | Description |
|---|---|
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. |