Interface ISecretStoreScope
- Namespace
- Fabricator.Core
- Assembly
- Fabricator.Core.dll
An opened secret store, see Open(ISecretStoreUi, SecretStoreContext). Disposing the scope closes it.
[Interface]
[CompilationMapping(SourceConstructFlags.ObjectType)]
public interface ISecretStoreScope : IDisposable
- Inherited Members
Methods
GetSecret(SecretName)
Gets the secret with the passed name.
FSharpAsync<SecureString?> GetSecret(SecretName name)
Parameters
nameSecretNameThe name of the secret.
Returns
- FSharpAsync<SecureString>
A new string instance on every call. The caller owns it and disposes it as soon as it is not needed, so it should not be shared with the store or with other callers.
nullif the secret was not found in the store.
Remarks
May be called concurrently, so the implementations should be thread-safe. Only called between the scope opening and its disposal.