C# Class GSF.Security.SecurityPrincipal

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

Méthodes publiques

Méthode 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 méthode

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.
Résultat bool

SecurityPrincipal() public méthode

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