C# Class Candor.Security.UserPrincipal

Inheritance: System.MarshalByRefObject, IPrincipal
Afficher le fichier Open project: michael-lang/candor-common Class Usage Examples

Private Properties

Свойство Type Description
EnsureRolesLoadedIfAuthenticated void

Méthodes publiques

Méthode 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

Méthode Description
EnsureRolesLoadedIfAuthenticated ( ) : void

Method Details

GetReadOnlyRoleNames() public méthode

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

IsInAnyRole() public méthode

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

IsInRole() public méthode

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.
Résultat bool

UserPrincipal() public méthode

Creates an anonymous principal
public UserPrincipal ( ) : System
Résultat System

UserPrincipal() public méthode

Creates a principal from another identity
public UserPrincipal ( UserIdentity identity ) : System
identity UserIdentity
Résultat System

UserPrincipal() public méthode

Creates a principal from another principal
public UserPrincipal ( UserPrincipal principal, String authType ) : System
principal UserPrincipal
authType String
Résultat System