Class SecretReference
- Namespace
- MailFathom.Infrastructure.Secrets.References
- Assembly
- MailFathom.Infrastructure.dll
A parsed <scheme>:<target> secret reference.
public sealed record SecretReference : IEquatable<SecretReference>
- Inheritance
-
SecretReference
- Implements
- Inherited Members
Remarks
Parsing answers a grammar question only. Whether an adapter serves the scheme is a dispatch question, which MailFathom.Infrastructure.Secrets.References.CompositeSecretReferenceResolver answers, so an unregistered scheme still parses and is reported as SchemeNotSupported rather than as a malformed reference.
Properties
- Scheme
Gets the scheme that selects the retrieval adapter.
- Target
Gets everything after the first colon, byte for byte.
Methods
- ToString()
Returns a string that represents the current object.
- TryParse(string?, out SecretReference?, out SecretResolutionFailure)
Parses a configured value as a secret reference.