Table of Contents

Constructor UserPasswordAuthenticator

Namespace
MailFathom.Infrastructure.Security.Passwords
Assembly
MailFathom.Infrastructure.dll

UserPasswordAuthenticator(IUserCredentialStore, IPasswordHasher, PasswordAttemptLimiter, DecoyPasswordHash, ILogger<UserPasswordAuthenticator>)

Initializes a new user password authenticator.

public UserPasswordAuthenticator(IUserCredentialStore credentials, IPasswordHasher passwordHasher, PasswordAttemptLimiter attemptLimiter, DecoyPasswordHash decoy, ILogger<UserPasswordAuthenticator> logger)

Parameters

credentials IUserCredentialStore

Where the users' credentials are kept.

passwordHasher IPasswordHasher

What a presented password is judged with, and what a record behind the policy is rewritten by.

attemptLimiter PasswordAttemptLimiter

The bound on how often a source or a username may have a password checked.

decoy DecoyPasswordHash

The record an unresolved username is compared against, derived once for the process.

logger ILogger<UserPasswordAuthenticator>

The log a refusal and a rehash failure are recorded in.

Remarks

Nothing is derived here, so constructing this per request costs what resolving four services costs.

Exceptions

ArgumentNullException

Thrown when any argument but the logger is null.