C# 클래스 EasyAuth.Authentication

파일 보기 프로젝트 열기: adamkdean/EasyAuth

공개 메소드들

메소드 설명
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