Interface IUser

The interface for User.


public abstract interface IUser

Interface Members

MemberDescription

AddRole

Adds a role to Roles by role ID.

public void AddRole(Guid roleID);

CanRemoveRole

Determines whether the specified role can be removed from the collection.

public RemoveRoleStatus CanRemoveRole(IRole role);

ChangePassword

Changes the user's password.

public bool ChangePassword(string oldPassword,
    string newPassword);

IsInRole

Determines if the object is in the specified role.

public bool IsInRole(IRole role);

VerifyPassword

Verifies that the specified password is correct.

public bool VerifyPassword(string testPassword)

Active

True if the user is active.

Email

The user's email address.

LastLogin

The last time the user logged in.

LicenseType

The type of license the user uses.

Password

The user's password (encrypted).

Roles

A collection of roles the user belongs to.

Tenant

The tenant the user belongs to.

Requirements

Namespace: Stonefield.Security
Assembly: interfaces.dll