Class SecretRef
- Namespace
- Fabricator.Core
- Assembly
- Fabricator.Core.dll
A reference to a secret: the store, and the name of the secret in the store. Resources requiring secrets from the user should accept them as references.
[ReferenceEquality]
[CompilationMapping(SourceConstructFlags.RecordType)]
public sealed class SecretRef
- Inheritance
-
SecretRef
- Inherited Members
Remarks
References are compared by reference: every reference object is a separate key of Secrets, even if its contents are equal to some other reference's. It is implemented this way to forbid even an incorrect implementation of ISecretStore from breaking the equality semantics.
Constructors
SecretRef(ISecretStore, SecretName)
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.NonPublicFields|DynamicallyAccessedMemberTypes.PublicProperties|DynamicallyAccessedMemberTypes.NonPublicProperties, typeof(SecretRef))]
public SecretRef(ISecretStore store, SecretName name)
Parameters
storeISecretStorenameSecretName
Properties
Name
The name of the secret in the store.
[CompilationMapping(SourceConstructFlags.Field, 1)]
public SecretName Name { get; }
Property Value
Store
The store to get the secret from.
[CompilationMapping(SourceConstructFlags.Field, 0)]
public ISecretStore Store { get; }
Property Value
Methods
ToString()
public override string ToString()