Table of Contents

Class MintedUserApiKey

Namespace
MailFathom.Application.Access.Credentials
Assembly
MailFathom.Application.dll

A key this deployment has just drawn, in the two forms that exist at that instant.

public sealed record MintedUserApiKey : IEquatable<MintedUserApiKey>
Inheritance
MintedUserApiKey
Implements
Inherited Members

Remarks

ToString() renders neither half, so no diagnostic, log template, or exception message can print a minted key or its digest by rendering the record it arrived in. The digest is withheld for the reason LookupIsDerivedFromTheSecret gives — it verifies a presented key, so it is material rather than a fact about the record, and the administrative listing answers it as absent. A record that published it here would be giving away in a log what a reader holding mailfathom.admin.credentials.read is refused.

Constructors

MintedUserApiKey(string, UserCredentialLookup)

A key this deployment has just drawn, in the two forms that exist at that instant.

Properties

Key

The plaintext, which is reported to whoever asked for it and then exists nowhere.

Lookup

The value the credential row is resolved by, which is what the deployment keeps.

Methods

ToString()

Returns a string that represents the current object.