Hermod
A cross-platform, modular and fully GDPR-compliant email archival solution!
Loading...
Searching...
No Matches
DomainUser.cs
Go to the documentation of this file.
1using System;
2
3namespace Hermod.Core.Accounts {
4
11 public sealed class DomainUser {
12
21 public DomainUser(int id, string accountName, string encryptedPassword, string passwordSalt, AccountType accType = AccountType.Imap) {
22 Id = id;
23 AccountName = accountName;
24 EncryptedPassword = encryptedPassword;
25 AccountType = accType;
26 PasswordSalt = passwordSalt;
27 }
28
35 public int Id { get; set; }
36
40 public string AccountName { get; set; }
41
46 public string EncryptedPassword { get; set; }
47
51 public AccountType AccountType { get; set; }
52
56 public string PasswordSalt { get; set; }
57
58 }
59}
60
This class represents a single user (email account) in a domain.
Definition: DomainUser.cs:11
string EncryptedPassword
The encrypted user password. Hermod does not and will never support using unencrypted passwords!
Definition: DomainUser.cs:46
int Id
The domain user's ID.
Definition: DomainUser.cs:35
string PasswordSalt
Gets or sets the salt to use for password encryption.
Definition: DomainUser.cs:56
string AccountName
The account name (i.e. the login name)
Definition: DomainUser.cs:40
DomainUser(int id, string accountName, string encryptedPassword, string passwordSalt, AccountType accType=AccountType.Imap)
Creates a new instance of this object.
Definition: DomainUser.cs:21
AccountType
Enumerates the different types of account types that are supported.
Definition: AccountType.cs:8