Method FindPasswordAsync
- Namespace
- MailFathom.Application.Access.Credentials
- Assembly
- MailFathom.Application.dll
FindPasswordAsync(UserCredentialLogin, CancellationToken)
Resolves the one password credential a login names, whether or not it is enabled.
Task<ResolvedUserCredential?> FindPasswordAsync(UserCredentialLogin login, CancellationToken cancellationToken)
Parameters
loginUserCredentialLoginThe login as the credential carried it: a username, prefixed by an organization's short name for a member of one.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<ResolvedUserCredential>
The credential, or null when no password credential answers to that login — including when the login names an organization that does not exist.
Remarks
One statement: the organization is resolved by its short name inside the same read as the credential, so a login naming an unknown organization costs what a login naming an unknown username costs and is answered the same way.
Exceptions
- ArgumentException
Thrown when
loginis the unspecified struct default.