C# Class Candor.Security.UserPrincipal

Inheritance: System.MarshalByRefObject, IPrincipal
Datei anzeigen Open project: michael-lang/candor-common Class Usage Examples

Private Properties

Property Type Description
EnsureRolesLoadedIfAuthenticated void

Public Methods

Method Description
GetReadOnlyRoleNames ( ) : List

Gets a list of the role names this user is within.

IsInAnyRole ( ) : bool

Determines if this user has access to perform actions in any of the specified roles.

IsInRole ( string role ) : bool

Determines if this user has access to perform actions of the specified role.

UserPrincipal ( ) : System

Creates an anonymous principal

UserPrincipal ( UserIdentity identity ) : System

Creates a principal from another identity

UserPrincipal ( UserPrincipal principal, String authType ) : System

Creates a principal from another principal

Private Methods

Method Description
EnsureRolesLoadedIfAuthenticated ( ) : void

Method Details

GetReadOnlyRoleNames() public method

Gets a list of the role names this user is within.
public GetReadOnlyRoleNames ( ) : List
return List

IsInAnyRole() public method

Determines if this user has access to perform actions in any of the specified roles.
public IsInAnyRole ( ) : bool
return bool

IsInRole() public method

Determines if this user has access to perform actions of the specified role.
public IsInRole ( string role ) : bool
role string The role name. Use a value from KnownRoles for /// standard role names.
return bool

UserPrincipal() public method

Creates an anonymous principal
public UserPrincipal ( ) : System
return System

UserPrincipal() public method

Creates a principal from another identity
public UserPrincipal ( UserIdentity identity ) : System
identity UserIdentity
return System

UserPrincipal() public method

Creates a principal from another principal
public UserPrincipal ( UserPrincipal principal, String authType ) : System
principal UserPrincipal
authType String
return System