C# 클래스 SecurityControllers.Authorization.ClaimPermission

상속: IPermission, ISecurityEncodable, IUnrestrictedPermission
파일 보기 프로젝트 열기: wcpro/SecurityControllers

공개 메소드들

메소드 설명
CheckAccess ( string action, string resource ) : bool

Calls ClaimsAuthorizationManager.

ClaimPermission ( string resource, string action ) : System

Initializes a new instance of the ClaimPermission class.

ClaimPermission ( string resourceType, string resource, string actionType, string action ) : System

Initializes a new instance of the ClaimPermission class.

Copy ( ) : IPermission

Creates and returns an identical copy of the current permission.

Demand ( ) : void

Throws a T:System.Security.SecurityException at run time if the security requirement is not met.

FromXml ( SecurityElement e ) : void

Reconstructs a security object with a specified state from an XML encoding.

Intersect ( IPermission target ) : IPermission

Creates and returns a permission that is the intersection of the current permission and the specified permission.

IsSubsetOf ( IPermission target ) : bool

Determines whether the current permission is a subset of the specified permission.

IsUnrestricted ( ) : bool

Returns a value indicating whether unrestricted access to the resource protected by the permission is allowed.

ToXml ( ) : SecurityElement

Creates an XML encoding of the security object and its current state.

Union ( IPermission target ) : IPermission

Creates a permission that is the union of the current permission and the specified permission.

비공개 메소드들

메소드 설명
ClaimPermission ( IEnumerable resourceActions ) : System
CreateAuthorizationContext ( ClaimsPrincipal currentPrincipal, ResourceAction resourceAction ) : System.Security.Claims.AuthorizationContext
ThrowSecurityException ( ) : void

메소드 상세

CheckAccess() 공개 정적인 메소드

Calls ClaimsAuthorizationManager.
public static CheckAccess ( string action, string resource ) : bool
action string The action.
resource string The resource.
리턴 bool

ClaimPermission() 공개 메소드

Initializes a new instance of the ClaimPermission class.
public ClaimPermission ( string resource, string action ) : System
resource string The resource.
action string The action.
리턴 System

ClaimPermission() 공개 메소드

Initializes a new instance of the ClaimPermission class.
public ClaimPermission ( string resourceType, string resource, string actionType, string action ) : System
resourceType string Type of the resource.
resource string The resource.
actionType string Type of the action.
action string The action.
리턴 System

Copy() 공개 메소드

Creates and returns an identical copy of the current permission.
public Copy ( ) : IPermission
리턴 IPermission

Demand() 공개 메소드

Throws a T:System.Security.SecurityException at run time if the security requirement is not met.
public Demand ( ) : void
리턴 void

FromXml() 공개 메소드

Reconstructs a security object with a specified state from an XML encoding.
public FromXml ( SecurityElement e ) : void
e System.Security.SecurityElement The XML encoding to use to reconstruct the security object.
리턴 void

Intersect() 공개 메소드

Creates and returns a permission that is the intersection of the current permission and the specified permission.
The parameter is not null and is not an instance of the same class as the current permission.
public Intersect ( IPermission target ) : IPermission
target IPermission A permission to intersect with the current permission. It must be of the same type as the current permission.
리턴 IPermission

IsSubsetOf() 공개 메소드

Determines whether the current permission is a subset of the specified permission.
The parameter is not null and is not of the same type as the current permission.
public IsSubsetOf ( IPermission target ) : bool
target IPermission A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission.
리턴 bool

IsUnrestricted() 공개 메소드

Returns a value indicating whether unrestricted access to the resource protected by the permission is allowed.
public IsUnrestricted ( ) : bool
리턴 bool

ToXml() 공개 메소드

Creates an XML encoding of the security object and its current state.
public ToXml ( ) : SecurityElement
리턴 System.Security.SecurityElement

Union() 공개 메소드

Creates a permission that is the union of the current permission and the specified permission.
The parameter is not null and is not of the same type as the current permission.
public Union ( IPermission target ) : IPermission
target IPermission A permission to combine with the current permission. It must be of the same type as the current permission.
리턴 IPermission