Constructor DefaultAdministratorBootstrap
- Namespace
- MailFathom.Application.Access.DefaultAdministrator
- Assembly
- MailFathom.Application.dll
DefaultAdministratorBootstrap(AccessAuthorization, IDefaultAdministratorStore, IUserCredentialStore, IPasswordHasher, TimeProvider)
Initializes a new instance of the DefaultAdministratorBootstrap class.
public DefaultAdministratorBootstrap(AccessAuthorization authorization, IDefaultAdministratorStore store, IUserCredentialStore credentials, IPasswordHasher passwordHasher, TimeProvider timeProvider)
Parameters
authorizationAccessAuthorizationAdmits the process identity, which is the only principal a start runs under.
storeIDefaultAdministratorStoreWhere the record of the administrator and of the applied setting is kept.
credentialsIUserCredentialStoreReads the administrator's password credential back, to tell whether it is still the shipped one.
passwordHasherIPasswordHasherHashes the setting, and verifies the stored password against the shipped value.
timeProviderTimeProviderSupplies the instant each record is written at.