Exemplo n.º 1
0
 public TechnicalUser(Login login, string password, SigningKey signingKey, TaxpayerIdentificationNumber taxId, EncryptionKey encryptionKey)
 {
     Login         = Check.IsNotNull(login, nameof(login));
     PasswordHash  = Utils.Sha512.GetHash(Check.IsNotNull(password, nameof(password)));
     SigningKey    = Check.IsNotNull(signingKey, nameof(signingKey));
     TaxId         = Check.IsNotNull(taxId, nameof(taxId));
     EncryptionKey = Check.IsNotNull(encryptionKey, nameof(encryptionKey));
 }
Exemplo n.º 2
0
 public TechnicalUser(Login login, string password, SigningKey signingKey, TaxPayerId taxId, EncryptionKey encryptionKey)
 {
     Login         = Check.NotNull(login, nameof(login));
     PasswordHash  = Sha512.GetHash(Check.NotNull(password, nameof(password)));
     SigningKey    = Check.NotNull(signingKey, nameof(signingKey));
     TaxId         = Check.NotNull(taxId, nameof(taxId));
     EncryptionKey = Check.NotNull(encryptionKey, nameof(encryptionKey));
 }