Class TrustAnchorLoadResult
- Namespace
- MailFathom.Infrastructure.Certificates
- Assembly
- MailFathom.Infrastructure.dll
The outcome of loading a configured trust anchor.
public sealed record TrustAnchorLoadResult : IDisposable, IEquatable<TrustAnchorLoadResult>
- Inheritance
-
TrustAnchorLoadResult
- Implements
- Inherited Members
Remarks
Unusable material is an expected configuration failure with a named cause rather than an exceptional state, so loading returns this instead of throwing and startup reports every unusable anchor of a deployment at once. A failed result carries no certificate and no material, which is what keeps it safe to include in an operator message.
Properties
- TrustAnchor
Gets the loaded anchor, owned by the caller, or null when loading failed.
Methods
- Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- Failed(CertificateMaterialFailure)
Creates a failed result.
- Loaded(X509Certificate2)
Creates a successful result that hands ownership of the anchor to the caller.