Constructor PresentedBasicCredential
- Namespace
- MailFathom.Infrastructure.Security.Passwords
- Assembly
- MailFathom.Infrastructure.dll
PresentedBasicCredential(string, char[], int, int)
Initializes a credential over the buffer its two halves were decoded into.
public PresentedBasicCredential(string userId, char[] decodedCredential, int passwordOffset, int passwordLength)
Parameters
userIdstringThe name presented, exactly as it was written.
decodedCredentialchar[]The buffer holding the decoded credential, which this instance takes ownership of.
passwordOffsetintWhere the password starts in that buffer.
passwordLengthintHow many characters of it the password is.
Exceptions
- ArgumentNullException
Thrown when
userIdordecodedCredentialis null.- ArgumentOutOfRangeException
Thrown when the password does not lie inside the buffer.