Table of Contents

Constructor UserCredentialAdministration

Namespace
MailFathom.Application.Access.Credentials
Assembly
MailFathom.Application.dll

UserCredentialAdministration(AccessAuthorization, IUserCredentialStore, IPasswordHasher, IUserApiKeyMinter, IClientPublicKeyReader, IUserCredentialAuditor, UserGrantResolver, TimeProvider)

Initializes the administration over one deployment's credential records.

public UserCredentialAdministration(AccessAuthorization authorization, IUserCredentialStore credentials, IPasswordHasher passwordHasher, IUserApiKeyMinter apiKeyMinter, IClientPublicKeyReader publicKeyReader, IUserCredentialAuditor auditor, UserGrantResolver grants, TimeProvider timeProvider)

Parameters

authorization AccessAuthorization

What each act is admitted by.

credentials IUserCredentialStore

Where the credentials are kept.

passwordHasher IPasswordHasher

What turns a password into the record that is stored.

apiKeyMinter IUserApiKeyMinter

What draws a key and reduces one to the value it is resolved by.

publicKeyReader IClientPublicKeyReader

What reads a client's public key into what is stored and what resolves it.

auditor IUserCredentialAuditor

Where a change to who can reach a user's mail is written down.

grants UserGrantResolver

Computes what a user holds, which a listing reports each credential's narrowing of.

timeProvider TimeProvider

The clock a record is stamped with.

Exceptions

ArgumentNullException

Thrown when any argument is null.