C# 클래스 WhiteCore.Services.AuthenticationServiceBase

파일 보기 프로젝트 열기: WhiteCoreSim/WhiteCore-Dev

보호된 프로퍼티들

프로퍼티 타입 설명
m_Database IAuthenticationData
m_authenticateUsers bool

공개 메소드들

메소드 설명
CheckExists ( UUID principalID, string authType ) : bool

Checks is a user exists.

Release ( UUID principalID, string token, string authType ) : bool
Remove ( UUID principalID, string authType ) : bool

Remove the specified user.

SetPassword ( UUID principalID, string authType, string password ) : bool

Sets the password for a user. Password is saved as an md5 hash

SetPasswordHashed ( UUID principalID, string authType, string passHash ) : bool

Sets a hashed password for a user (default use).

SetPlainPassword ( UUID principalID, string authType, string pass ) : bool

Sets a plain password for a user.

SetSaltedPassword ( UUID principalID, string authType, string passHash, string saltHash ) : bool

Sets the salted password for a user.

Verify ( UUID principalID, string authType, string token, int lifetime ) : bool

보호된 메소드들

메소드 설명
GetToken ( UUID principalID, int lifetime ) : string

비공개 메소드들

메소드 설명
SaveAuth ( WhiteCore.Framework.Services.AuthData auth, UUID principalID ) : bool

메소드 상세

CheckExists() 공개 메소드

Checks is a user exists.
public CheckExists ( UUID principalID, string authType ) : bool
principalID UUID Principal identifier.
authType string Auth type.
리턴 bool

GetToken() 보호된 메소드

protected GetToken ( UUID principalID, int lifetime ) : string
principalID UUID
lifetime int
리턴 string

Release() 공개 메소드

public Release ( UUID principalID, string token, string authType ) : bool
principalID UUID
token string
authType string
리턴 bool

Remove() 공개 메소드

Remove the specified user.
public Remove ( UUID principalID, string authType ) : bool
principalID UUID Principal identifier.
authType string Auth type.
리턴 bool

SetPassword() 공개 메소드

Sets the password for a user. Password is saved as an md5 hash
public SetPassword ( UUID principalID, string authType, string password ) : bool
principalID UUID Principal identifier.
authType string Auth type.
password string Password.
리턴 bool

SetPasswordHashed() 공개 메소드

Sets a hashed password for a user (default use).
public SetPasswordHashed ( UUID principalID, string authType, string passHash ) : bool
principalID UUID Principal identifier.
authType string Auth type.
passHash string Password hash.
리턴 bool

SetPlainPassword() 공개 메소드

Sets a plain password for a user.
public SetPlainPassword ( UUID principalID, string authType, string pass ) : bool
principalID UUID Principal identifier.
authType string Auth type.
pass string Password.
리턴 bool

SetSaltedPassword() 공개 메소드

Sets the salted password for a user.
public SetSaltedPassword ( UUID principalID, string authType, string passHash, string saltHash ) : bool
principalID UUID Principal identifier.
authType string Auth type.
passHash string Password hash.
saltHash string Salt hash.
리턴 bool

Verify() 공개 메소드

public Verify ( UUID principalID, string authType, string token, int lifetime ) : bool
principalID UUID
authType string
token string
lifetime int
리턴 bool

프로퍼티 상세

m_Database 보호되어 있는 프로퍼티

protected IAuthenticationData m_Database
리턴 IAuthenticationData

m_authenticateUsers 보호되어 있는 프로퍼티

protected bool m_authenticateUsers
리턴 bool