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
presentedKeyReadOnlySpan<char>The key as the request carried it, which is read within the call and never retained.
lookupUserCredentialLookupThe value to resolve by when the presented key is one this deployment could have minted; otherwise the unspecified default.
Returns
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.