C# Class WhiteCore.Services.AuthenticationServiceBase

Afficher le fichier Open project: WhiteCoreSim/WhiteCore-Dev

Protected Properties

Свойство Type Description
m_Database IAuthenticationData
m_authenticateUsers bool

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
GetToken ( UUID principalID, int lifetime ) : string

Private Methods

Méthode Description
SaveAuth ( WhiteCore.Framework.Services.AuthData auth, UUID principalID ) : bool

Method Details

CheckExists() public méthode

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

GetToken() protected méthode

protected GetToken ( UUID principalID, int lifetime ) : string
principalID UUID
lifetime int
Résultat string

Release() public méthode

public Release ( UUID principalID, string token, string authType ) : bool
principalID UUID
token string
authType string
Résultat bool

Remove() public méthode

Remove the specified user.
public Remove ( UUID principalID, string authType ) : bool
principalID UUID Principal identifier.
authType string Auth type.
Résultat bool

SetPassword() public méthode

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.
Résultat bool

SetPasswordHashed() public méthode

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.
Résultat bool

SetPlainPassword() public méthode

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.
Résultat bool

SetSaltedPassword() public méthode

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.
Résultat bool

Verify() public méthode

public Verify ( UUID principalID, string authType, string token, int lifetime ) : bool
principalID UUID
authType string
token string
lifetime int
Résultat bool

Property Details

m_Database protected_oe property

protected IAuthenticationData m_Database
Résultat IAuthenticationData

m_authenticateUsers protected_oe property

protected bool m_authenticateUsers
Résultat bool