Method Verify
- Namespace
- MailFathom.Application.Access.Credentials
- Assembly
- MailFathom.Application.dll
Verify(string, ReadOnlySpan<char>)
Judges a presented password against a stored record.
PasswordVerification Verify(string storedHash, ReadOnlySpan<char> password)
Parameters
storedHashstringThe record as it was stored, or any other text a row happened to hold.
passwordReadOnlySpan<char>The plaintext presented, which is read within the call and never retained.
Returns
- PasswordVerification
What the comparison established, including whether the record is behind the current policy.
Remarks
The comparison of the derived keys is constant-time. A record that will not parse answers Failed rather than raising, because the caller refuses an unreadable record and a wrong password identically and must not be given a fault to report differently.
Exceptions
- ArgumentNullException
Thrown when
storedHashis null.