class Authentication implements AuthenticationInterface (View source)

The Authentication class.

Constants

SUCCESS

INVALID_CREDENTIAL

EMPTY_CREDENTIAL

USER_NOT_FOUND

INVALID_USERNAME

INVALID_PASSWORD

Methods

__construct(array $methods = array())

Authentication constructor.

bool|Credential
authenticate(Credential $credential)

authenticate

addMethod(string $name, MethodInterface $method)

addMethod

getMethod(string $name)

getMethod

$this
removeMethod(string $name)

removeMethod

integer[]
getResults()

Method to get property Results

getCredential()

Method to get property Credential

Details

at line line 58
__construct(array $methods = array())

Authentication constructor.

Parameters

array $methods

at line line 70
bool|Credential authenticate(Credential $credential)

authenticate

Parameters

Credential $credential

Return Value

bool|Credential

at line line 101
AuthenticationInterface addMethod(string $name, MethodInterface $method)

addMethod

Parameters

string $name
MethodInterface $method

Return Value

AuthenticationInterface

at line line 115
MethodInterface getMethod(string $name)

getMethod

Parameters

string $name

Return Value

MethodInterface

at line line 132
$this removeMethod(string $name)

removeMethod

Parameters

string $name

Return Value

$this

at line line 147
integer[] getResults()

Method to get property Results

Return Value

integer[]

at line line 157
Credential getCredential()

Method to get property Credential

Return Value

Credential