C# Class EasyAuth.Authentication

Afficher le fichier Open project: adamkdean/EasyAuth

Méthodes publiques

Méthode Description
HashPassword ( string password, string salt, bool secure = false ) : string
IsAuthenticated ( ) : bool
Login ( string username, string password ) : bool
Login ( string username, string password, bool persist, int length = 28 ) : bool
Logout ( ) : void

Méthodes protégées

Méthode Description
Authenticate ( string username, string hash ) : bool
Authenticate ( string username, string hash, bool persist, int length = 28 ) : bool
CreateCookie ( string username, string hash, int days = 28 ) : void
ExpireCookie ( ) : void
GetCookie ( ) : System.Web.HttpCookie

Method Details

Authenticate() protected static méthode

protected static Authenticate ( string username, string hash ) : bool
username string
hash string
Résultat bool

Authenticate() protected static méthode

protected static Authenticate ( string username, string hash, bool persist, int length = 28 ) : bool
username string
hash string
persist bool
length int
Résultat bool

CreateCookie() protected static méthode

protected static CreateCookie ( string username, string hash, int days = 28 ) : void
username string
hash string
days int
Résultat void

ExpireCookie() protected static méthode

protected static ExpireCookie ( ) : void
Résultat void

GetCookie() protected static méthode

protected static GetCookie ( ) : System.Web.HttpCookie
Résultat System.Web.HttpCookie

HashPassword() public static méthode

public static HashPassword ( string password, string salt, bool secure = false ) : string
password string
salt string
secure bool
Résultat string

IsAuthenticated() public static méthode

public static IsAuthenticated ( ) : bool
Résultat bool

Login() public static méthode

public static Login ( string username, string password ) : bool
username string
password string
Résultat bool

Login() public static méthode

public static Login ( string username, string password, bool persist, int length = 28 ) : bool
username string
password string
persist bool
length int
Résultat bool

Logout() public static méthode

public static Logout ( ) : void
Résultat void