PHP Class Thruway\Authentication\AbstractAuthProviderClient

Inheritance: extends Thruway\Peer\Client
Afficher le fichier Open project: voryx/thruway Class Usage Examples

Protected Properties

Свойство Type Description
$authRealms array

Méthodes publiques

Méthode Description
__construct ( array $authRealms, React\EventLoop\LoopInterface $loop = null ) Constructor
getAuthRealms ( ) : array Get list supported realms
getMethodName ( ) : mixed
onSessionStart ( ClientSession $session, Thruway\Transport\TransportProviderInterface $transport ) Handles session start
preProcessAuthenticate ( array $args ) : array Pre process AuthenticateMessage Extract and validate arguments
processAuthenticate ( mixed $signature, mixed $extra = null ) : array Process AuthenticateMessage Check authenticate and return ["SUCCESS"] and ["FAILURE"]
processHello ( array $args ) : array Process HelloMessage
setAuthRealms ( array $authRealms ) Set list supported realms

Method Details

__construct() public méthode

Constructor
public __construct ( array $authRealms, React\EventLoop\LoopInterface $loop = null )
$authRealms array
$loop React\EventLoop\LoopInterface

getAuthRealms() public méthode

Get list supported realms
public getAuthRealms ( ) : array
Résultat array

getMethodName() abstract public méthode

abstract public getMethodName ( ) : mixed
Résultat mixed

onSessionStart() public méthode

Handles session start
public onSessionStart ( ClientSession $session, Thruway\Transport\TransportProviderInterface $transport )
$session Thruway\ClientSession
$transport Thruway\Transport\TransportProviderInterface

preProcessAuthenticate() public méthode

Pre process AuthenticateMessage Extract and validate arguments
public preProcessAuthenticate ( array $args ) : array
$args array
Résultat array

processAuthenticate() public méthode

Process AuthenticateMessage Check authenticate and return ["SUCCESS"] and ["FAILURE"]
public processAuthenticate ( mixed $signature, mixed $extra = null ) : array
$signature mixed
$extra mixed
Résultat array

processHello() public méthode

Process HelloMessage
public processHello ( array $args ) : array
$args array
Résultat array

setAuthRealms() public méthode

Set list supported realms
public setAuthRealms ( array $authRealms )
$authRealms array

Property Details

$authRealms protected_oe property

protected array $authRealms
Résultat array