C# Class Universe.Services.AuthenticationServiceBase

Mostrar archivo Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Property Type Description
m_Database IAuthenticationData
m_authenticateUsers bool

Public Methods

Method Description
CheckExists ( UUID principalID, string authType ) : bool
Release ( UUID principalID, string token, string authType ) : bool
Remove ( UUID principalID, string authType ) : bool
SetPassword ( UUID principalID, string authType, string password ) : bool
SetPasswordHashed ( UUID principalID, string authType, string Hashedpassword ) : bool
SetPlainPassword ( UUID principalID, string authType, string pass ) : bool
SetSaltedPassword ( UUID principalID, string authType, string salt, string pass ) : bool
Verify ( UUID principalID, string authType, string token, int lifetime ) : bool

Protected Methods

Method Description
GetToken ( UUID principalID, int lifetime ) : string

Private Methods

Method Description
SaveAuth ( AuthData auth, UUID principalID ) : bool

Method Details

CheckExists() public method

public CheckExists ( UUID principalID, string authType ) : bool
principalID UUID
authType string
return bool

GetToken() protected method

protected GetToken ( UUID principalID, int lifetime ) : string
principalID UUID
lifetime int
return string

Release() public method

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

Remove() public method

public Remove ( UUID principalID, string authType ) : bool
principalID UUID
authType string
return bool

SetPassword() public method

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

SetPasswordHashed() public method

public SetPasswordHashed ( UUID principalID, string authType, string Hashedpassword ) : bool
principalID UUID
authType string
Hashedpassword string
return bool

SetPlainPassword() public method

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

SetSaltedPassword() public method

public SetSaltedPassword ( UUID principalID, string authType, string salt, string pass ) : bool
principalID UUID
authType string
salt string
pass string
return bool

Verify() public method

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

Property Details

m_Database protected_oe property

protected IAuthenticationData m_Database
return IAuthenticationData

m_authenticateUsers protected_oe property

protected bool m_authenticateUsers
return bool