C# Class URSA.Security.ResourceSecurityInfo

Describes a security requirements of a resource.
Inheritance: ICloneable
显示文件 Open project: alien-mcl/URSA Class Usage Examples

Public Methods

Method Description
Allow ( string claimType, string claimValue = null ) : ResourceSecurityInfo

Allows the specified claim type.

Clone ( ) : ResourceSecurityInfo

Clones this instance.

Deny ( string claimType, string claimValue = null ) : ResourceSecurityInfo

Denies the specified claim type.

Disallow ( string claimType, string claimValue = null ) : ResourceSecurityInfo

Disallows the specified claim type.

OverrideWith ( ResourceSecurityInfo specificSecurityInfo ) : ResourceSecurityInfo

Merges specifications overriding settings with those taken from specificSecurityInfo.

ResourceSecurityInfo ( ) : System

Initializes a new instance of the ResourceSecurityInfo class.

Undeny ( string claimType, string claimValue = null ) : ResourceSecurityInfo

Undenies the specified claim type.

Private Methods

Method Description
ICloneable ( ) : object
Merge ( SecuritySpecificationInfo securitySpecificationInfo, object>.Expression mergingDelegate ) : void
ResourceSecurityInfo ( SecuritySpecificationInfo allowed, SecuritySpecificationInfo denied ) : System

Method Details

Allow() public method

Allows the specified claim type.
public Allow ( string claimType, string claimValue = null ) : ResourceSecurityInfo
claimType string Type of the claim.
claimValue string The claim value.
return ResourceSecurityInfo

Clone() public method

Clones this instance.
public Clone ( ) : ResourceSecurityInfo
return ResourceSecurityInfo

Deny() public method

Denies the specified claim type.
public Deny ( string claimType, string claimValue = null ) : ResourceSecurityInfo
claimType string Type of the claim.
claimValue string The claim value.
return ResourceSecurityInfo

Disallow() public method

Disallows the specified claim type.
public Disallow ( string claimType, string claimValue = null ) : ResourceSecurityInfo
claimType string Type of the claim.
claimValue string The claim value.
return ResourceSecurityInfo

OverrideWith() public method

Merges specifications overriding settings with those taken from specificSecurityInfo.
public OverrideWith ( ResourceSecurityInfo specificSecurityInfo ) : ResourceSecurityInfo
specificSecurityInfo ResourceSecurityInfo The specific security information to merge with.
return ResourceSecurityInfo

ResourceSecurityInfo() public method

Initializes a new instance of the ResourceSecurityInfo class.
public ResourceSecurityInfo ( ) : System
return System

Undeny() public method

Undenies the specified claim type.
public Undeny ( string claimType, string claimValue = null ) : ResourceSecurityInfo
claimType string Type of the claim.
claimValue string The claim value.
return ResourceSecurityInfo