Table of Contents

Struct UserCredentialSurface

Namespace
MailFathom.Domain.Access
Assembly
MailFathom.Domain.dll

One endpoint a user's credential may be presented on.

public readonly record struct UserCredentialSurface : IEquatable<UserCredentialSurface>
Implements
Inherited Members

Remarks

A credential carries the surfaces it is good for, so the authority to administer the deployment is never acquired by a credential provisioned to read mail: the administrative endpoint is one of them only where somebody wrote it. Default is what a credential states when nobody wrote anything, and it holds the two mail-serving endpoints alone.

A closed enumeration rather than a C# enum for the reason UserCredentialMethod is one: the name is written by an operator on a command line, published in a credential listing, and recorded in a column, and none of those readers has a member's ordinal to hand. A name is allocated once and never renamed.

The user's own endpoint switches still decide whether a person is served on the MCP and client endpoints at all; a credential is admitted on a surface only where both allow it. On the administrative endpoint the switch is the user's administrative grant instead.

Properties

Administration

Gets the endpoint the deployment is administered through.

All

Gets every surface this repository publishes.

Client

Gets the endpoint the MailFathom client reads and writes a user's mail through.

Default

Gets the surfaces a credential states when nothing was written for it.

IsSpecified

Gets whether this value names a published surface rather than the unusable struct default.

Mcp

Gets the endpoint an agent reads a user's mail through over the MCP protocol.

Name

Gets the published name, which is what an operator writes and a row records.

Methods

ParseKnown(IEnumerable<string>)

Reads the surfaces a stored or written list names, in published order and without repetition.

ToString()

Returns the fully qualified type name of this instance.

TryParse(string?, out UserCredentialSurface)

Parses a name written outside this process.