C# Class GSF.Security.SecurityPrincipal

A class that implements IPrincipal interface to facilitate custom role-based security.
Inheritance: IPrincipal
Mostra file Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
IsInRole ( string roles ) : bool

Determines whether the user is a member of either of the specified roles.

SecurityPrincipal ( SecurityIdentity identity ) : System

Initializes a new instance of the SecurityPrincipal class.

Method Details

IsInRole() public method

Determines whether the user is a member of either of the specified roles.
public IsInRole ( string roles ) : bool
roles string Comma separated list of roles to check.
return bool

SecurityPrincipal() public method

Initializes a new instance of the SecurityPrincipal class.
Value specified for is null.
public SecurityPrincipal ( SecurityIdentity identity ) : System
identity SecurityIdentity An object.
return System