Table of Contents

Constructor MintedUserApiKey

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

MintedUserApiKey(string, UserCredentialLookup)

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

public MintedUserApiKey(string Key, UserCredentialLookup Lookup)

Parameters

Key string

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

Lookup UserCredentialLookup

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

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.