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
authorizationAccessAuthorizationWhat each act is admitted by.
credentialsIUserCredentialStoreWhere the credentials are kept.
passwordHasherIPasswordHasherWhat turns a password into the record that is stored.
apiKeyMinterIUserApiKeyMinterWhat draws a key and reduces one to the value it is resolved by.
publicKeyReaderIClientPublicKeyReaderWhat reads a client's public key into what is stored and what resolves it.
auditorIUserCredentialAuditorWhere a change to who can reach a user's mail is written down.
grantsUserGrantResolverComputes what a user holds, which a listing reports each credential's narrowing of.
timeProviderTimeProviderThe clock a record is stamped with.
Exceptions
- ArgumentNullException
Thrown when any argument is null.