Table of Contents

Method TryDigest

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

TryDigest(ReadOnlySpan<char>, out UserCredentialLookup)

Reduces a presented key to the value a stored credential is resolved by.

bool TryDigest(ReadOnlySpan<char> presentedKey, out UserCredentialLookup lookup)

Parameters

presentedKey ReadOnlySpan<char>

The key as the request carried it, which is read within the call and never retained.

lookup UserCredentialLookup

The value to resolve by when the presented key is one this deployment could have minted; otherwise the unspecified default.

Returns

bool

true when the presented key has a shape this deployment mints.

Remarks

It answers rather than raising because its caller meets an unusable value as an ordinary event: a request presenting something that is not one of this deployment's keys is refused exactly as one presenting a key nobody holds, and neither may be told apart from the other.