C# 클래스 Serenity.WebSecurityHelper

Static class contains helper functions associated with user rights, login, encrypting
파일 보기 프로젝트 열기: volkanceylan/Serenity

공개 메소드들

메소드 설명
Authenticate ( string &username, string password, bool persist ) : bool

Validate user identity by checking username and password and sets authentication ticket that is based on cookie

EnsurePermission ( string permission ) : void
LogOut ( ) : void

Logs out to logged user.

SetAuthenticationTicket ( string username, bool persist ) : void

Sets authentication cookie.

메소드 상세

Authenticate() 공개 정적인 메소드

Validate user identity by checking username and password and sets authentication ticket that is based on cookie
public static Authenticate ( string &username, string password, bool persist ) : bool
username string /// Username to be validated (required).
password string /// User Password to be validated(required).
persist bool /// true to make ticket persistent? (beni hatırla seçeneği, güvenlik açısından pek kullanmıyoruz.)
리턴 bool

EnsurePermission() 공개 정적인 메소드

public static EnsurePermission ( string permission ) : void
permission string
리턴 void

LogOut() 공개 정적인 메소드

Logs out to logged user.
public static LogOut ( ) : void
리턴 void

SetAuthenticationTicket() 공개 정적인 메소드

Sets authentication cookie.
public static SetAuthenticationTicket ( string username, bool persist ) : void
username string /// Validated Username (required).
persist bool /// is persistent authentication tikcet? (remember me, we don't use this for reasons considering with security)
리턴 void