C# Class Epiworx.Business.Security.BusinessPrincipal

Exibir arquivo Open project: mattruma/epiworx-csla Class Usage Examples

Public Methods

Method Description
BusinessPrincipal ( ) : System
GetCurrentIdentity ( ) : BusinessIdentity
GetCurrentPrincipal ( ) : BusinessPrincipal
IsInRole ( string role ) : bool
LoadPrincipal ( string username ) : void
Login ( string username, string password ) : bool
Logout ( ) : void

Private Methods

Method Description
BusinessPrincipal ( IIdentity identity ) : System
SetPrincipal ( BusinessIdentity identity ) : bool

Method Details

BusinessPrincipal() public method

public BusinessPrincipal ( ) : System
return System

GetCurrentIdentity() public static method

public static GetCurrentIdentity ( ) : BusinessIdentity
return BusinessIdentity

GetCurrentPrincipal() public static method

public static GetCurrentPrincipal ( ) : BusinessPrincipal
return BusinessPrincipal

IsInRole() public method

public IsInRole ( string role ) : bool
role string
return bool

LoadPrincipal() public static method

public static LoadPrincipal ( string username ) : void
username string
return void

Login() public static method

public static Login ( string username, string password ) : bool
username string
password string
return bool

Logout() public static method

public static Logout ( ) : void
return void