67 lines
1.7 KiB
C#
67 lines
1.7 KiB
C#
using System;
|
|
|
|
namespace Xylem.Common.Cryptology.Security
|
|
{
|
|
/// <summary>
|
|
/// Collection of user information for DB.
|
|
/// </summary>
|
|
public class UserInformation
|
|
{
|
|
/// <summary>
|
|
/// Ctor with user Id.
|
|
/// </summary>
|
|
public UserInformation(Int32 id)
|
|
{
|
|
Id = id;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Ctor.
|
|
/// </summary>
|
|
public UserInformation()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Used to keep the selection information on e.g. data tables stuck at the user.
|
|
/// </summary>
|
|
public Boolean IsSelected;
|
|
/// <summary>
|
|
/// Identification number of user used for DB assignment of hash and HwId.
|
|
/// </summary>
|
|
public Int32 Id;
|
|
/// <summary>
|
|
/// Readable name of user.
|
|
/// </summary>
|
|
public String FullName;
|
|
/// <summary>
|
|
/// Domain where user is registered.
|
|
/// </summary>
|
|
public String Domain;
|
|
/// <summary>
|
|
/// Login name of user.
|
|
/// </summary>
|
|
public String LogInName;
|
|
/// <summary>
|
|
/// User password hash.
|
|
/// </summary>
|
|
public String PasswordHash;
|
|
/// <summary>
|
|
/// Hardware identification.
|
|
/// </summary>
|
|
public String HardwareId;
|
|
/// <summary>
|
|
/// Date of user registration.
|
|
/// </summary>
|
|
public DateTimeOffset RegisterDate;
|
|
/// <summary>
|
|
/// Validation data.
|
|
/// </summary>
|
|
public DateTimeOffset ValidDate;
|
|
/// <summary>
|
|
/// All new users must be manually validated to active.
|
|
/// </summary>
|
|
public Boolean AccountActive;
|
|
}
|
|
}
|