C# Класс EasyAuth.Authentication

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

Authenticate() защищенный статический Метод

protected static Authenticate ( string username, string hash ) : bool
username string
hash string
Результат bool

Authenticate() защищенный статический Метод

protected static Authenticate ( string username, string hash, bool persist, int length = 28 ) : bool
username string
hash string
persist bool
length int
Результат bool

CreateCookie() защищенный статический Метод

protected static CreateCookie ( string username, string hash, int days = 28 ) : void
username string
hash string
days int
Результат void

ExpireCookie() защищенный статический Метод

protected static ExpireCookie ( ) : void
Результат void

GetCookie() защищенный статический Метод

protected static GetCookie ( ) : System.Web.HttpCookie
Результат System.Web.HttpCookie

HashPassword() публичный статический Метод

public static HashPassword ( string password, string salt, bool secure = false ) : string
password string
salt string
secure bool
Результат string

IsAuthenticated() публичный статический Метод

public static IsAuthenticated ( ) : bool
Результат bool

Login() публичный статический Метод

public static Login ( string username, string password ) : bool
username string
password string
Результат bool

Login() публичный статический Метод

public static Login ( string username, string password, bool persist, int length = 28 ) : bool
username string
password string
persist bool
length int
Результат bool

Logout() публичный статический Метод

public static Logout ( ) : void
Результат void