Table of Contents

Class MailAccountSecretOptions

Namespace
MailFathom.Infrastructure.Mail
Assembly
MailFathom.Infrastructure.dll

Binds one account's secret-bearing settings and resolves them into owned material.

public sealed class MailAccountSecretOptions
Inheritance
MailAccountSecretOptions
Inherited Members

Remarks

This is the configuration adapter for an account's secrets, alongside MailAccountTransportSecurityOptions for its transport rules. It stays mutable and binder-friendly, and the block shape means an operator's configuration file holds references rather than credentials.

Properties

Password

Gets or sets the reference to the mailbox password or app password, absent when the account authenticates with an access token.

Methods

FindConfigurationErrorsAsync(ISecretReferenceResolver, CancellationToken)

Resolves every secret and discards the material, reporting what an operator must fix.

ResolvePasswordAsync(ISecretReferenceResolver, CancellationToken)

Resolves the mailbox password and hands ownership of the material to the caller.