C# Class Thinktecture.IdentityModel.Claims.ClaimsAuthorization

Provides direct access methods for evaluating authorization policy
Mostra file Open project: IdentityModel/Thinktecture.IdentityModel.v1

Public Methods

Method Description
CheckAccess ( AuthorizationContext context ) : bool

Checks the authorization policy.

CheckAccess ( Collection actions, Collection resources ) : bool

Checks the authorization policy.

CheckAccess ( string resource, string action ) : bool

Checks the authorization policy.

CheckAccess ( string resource, string action, IClaimsPrincipal principal ) : bool

Checks the authorization policy.

DemandAccess ( AuthorizationContext context ) : void

Checks the authorization policy. Will throw a SecurityException when check fails.

DemandAccess ( Collection actions, Collection resources ) : void

Checks the authorization policy. Will throw a SecurityException when check fails.

DemandAccess ( string resource, string action ) : void

Checks the authorization policy. Will throw a SecurityException when check fails.

DemandAccess ( string resource, string action, IClaimsPrincipal principal ) : void

Checks the authorization policy. Will throw a SecurityException when check fails.

Method Details

CheckAccess() public static method

Checks the authorization policy.
public static CheckAccess ( AuthorizationContext context ) : bool
context AuthorizationContext The authorization context.
return bool

CheckAccess() public static method

Checks the authorization policy.
public static CheckAccess ( Collection actions, Collection resources ) : bool
actions Collection The actions.
resources Collection The resources.
return bool

CheckAccess() public static method

Checks the authorization policy.
public static CheckAccess ( string resource, string action ) : bool
resource string The resource.
action string The action.
return bool

CheckAccess() public static method

Checks the authorization policy.
public static CheckAccess ( string resource, string action, IClaimsPrincipal principal ) : bool
resource string The resource.
action string The action.
principal IClaimsPrincipal The principal.
return bool

DemandAccess() public static method

Checks the authorization policy. Will throw a SecurityException when check fails.
public static DemandAccess ( AuthorizationContext context ) : void
context AuthorizationContext The context.
return void

DemandAccess() public static method

Checks the authorization policy. Will throw a SecurityException when check fails.
public static DemandAccess ( Collection actions, Collection resources ) : void
actions Collection The actions.
resources Collection The resources.
return void

DemandAccess() public static method

Checks the authorization policy. Will throw a SecurityException when check fails.
public static DemandAccess ( string resource, string action ) : void
resource string The resource.
action string The action.
return void

DemandAccess() public static method

Checks the authorization policy. Will throw a SecurityException when check fails.
public static DemandAccess ( string resource, string action, IClaimsPrincipal principal ) : void
resource string The resource.
action string The action.
principal IClaimsPrincipal The principal.
return void