C# 클래스 Candor.Security.UserPrincipal

상속: System.MarshalByRefObject, IPrincipal
파일 보기 프로젝트 열기: michael-lang/candor-common 1 사용 예제들

Private Properties

프로퍼티 타입 설명
EnsureRolesLoadedIfAuthenticated void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
EnsureRolesLoadedIfAuthenticated ( ) : void

메소드 상세

GetReadOnlyRoleNames() 공개 메소드

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

IsInAnyRole() 공개 메소드

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

IsInRole() 공개 메소드

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.
리턴 bool

UserPrincipal() 공개 메소드

Creates an anonymous principal
public UserPrincipal ( ) : System
리턴 System

UserPrincipal() 공개 메소드

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

UserPrincipal() 공개 메소드

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