Class WMPrincipal
Abstract base class representing an entity to which access privileges can be granted.
Assembly: WMServer.dll
Syntax
public abstract class WMPrincipal : IDbEntity, IWMEntity, IPolicyAssignable
Constructors
WMPrincipal()
Default constructor initializes ID with a new GUID.
Declaration
WMPrincipal(string)
Declaration
public WMPrincipal(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Properties
CreatedBy
ID of the user that created this entity.
Declaration
public string CreatedBy { get; set; }
Property Value
CreatedDate
Date and time at which this entity was last updated.
Declaration
public DateTime CreatedDate { get; set; }
Property Value
ID
Declaration
public string ID { get; protected set; }
Property Value
LastUpdatedBy
ID of the user that last updated this entity.
Declaration
public string LastUpdatedBy { get; set; }
Property Value
LastUpdatedDate
Date and time at which this entity was last updated.
Declaration
public DateTime LastUpdatedDate { get; set; }
Property Value
LoginName
Name used as login credentials.
Declaration
public string LoginName { get; set; }
Property Value
Name
Actual name of the principal
Declaration
public string Name { get; set; }
Property Value
Password
Password used for authentication.
Declaration
public string Password { get; set; }
Property Value
Permissions
Declaration
public virtual List<Permission> Permissions { get; }
Property Value
Policies
Declaration
public virtual List<Policy> Policies { get; }
Property Value
Status
Declaration
public PrincipalStatus Status { get; set; }
Property Value
Methods
Get(string, string)
Static factory that gets the isntance of a WMPrincipal sub-class depending on its type and ID.
Declaration
public static Task<WMPrincipal> Get(string typeName, string id)
Parameters
Returns
HashPassword(string, out string)
Declaration
public static string HashPassword(string password, out string salt)
Parameters
Returns
Exceptions
VerifyPassword(string, string, string)
Declaration
public static bool VerifyPassword(string password, string hash, string salt)
Parameters
Returns
Exceptions
Implements