Class MailTransportSecurityPolicy
- Namespace
- MailFathom.Domain.Transport
- Assembly
- MailFathom.Domain.dll
Defines how one mail account connects, which certificate authorities it trusts, and how it authenticates.
public sealed record MailTransportSecurityPolicy : IEquatable<MailTransportSecurityPolicy>
- Inheritance
-
MailTransportSecurityPolicy
- Implements
- Inherited Members
Remarks
The rules that reject an unsafe combination are pure policy, so they live here rather than in a configuration validator. Every entry point that reaches a transport adapter builds this value first, which is what keeps a future command-line or MCP-driven account from bypassing the rejection a host options validator performs at startup.
Properties
- Authentication
Gets the permitted authentication mechanisms and the accepted weakenings.
- CertificateTrust
Gets which certificate authorities validate the server certificate.
- ConnectionSecurity
Gets the selected connection encryption mode.
- TrustedCertificateAuthorityReference
Gets the reference to deployment-provisioned trust anchor material, when an additional authority is trusted.
Methods
- Create(MailConnectionSecurity, MailAuthenticationPolicy, MailServerCertificateTrust, string?)
Creates a validated transport security policy.
- FindViolations(MailConnectionSecurity, IReadOnlyList<MailAuthenticationMechanism>?, bool, bool, MailServerCertificateTrust, string?)
Finds every transport security rule the supplied combination violates.
- GuaranteesEncryptedChannel(MailConnectionSecurity)
Gets whether the connection mode guarantees that no traffic can travel unencrypted.