Table of Contents

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

userId string

The name presented, exactly as it was written.

decodedCredential char[]

The buffer holding the decoded credential, which this instance takes ownership of.

passwordOffset int

Where the password starts in that buffer.

passwordLength int

How many characters of it the password is.

Exceptions

ArgumentNullException

Thrown when userId or decodedCredential is null.

ArgumentOutOfRangeException

Thrown when the password does not lie inside the buffer.