PHP Class AppserverIo\Appserver\ServletEngine\Security\Auth\Callback\SecurityAssociationHandler

Inheritance: implements AppserverIo\Psr\Security\Auth\Callback\CallbackHandlerInterface
Show file Open project: appserver-io/appserver

Protected Properties

Property Type Description
$credential AppserverIo\Lang\String The principal's credential.
$principal AppserverIo\Psr\Security\PrincipalInterface The principal instance.

Public Methods

Method Description
__construct ( AppserverIo\Psr\Security\PrincipalInterface $principal, string $credential )
handle ( AppserverIo\Collections\CollectionInterface $callbacks ) : void Handles UsernameCallback and PasswordCallback types. A UsernameCallback name property is set to the Prinicpal->getName() value. A PasswordCallback password property is set to the credential value.

Method Details

__construct() public method

public __construct ( AppserverIo\Psr\Security\PrincipalInterface $principal, string $credential )
$principal AppserverIo\Psr\Security\PrincipalInterface The principal instance
$credential string The principal's credential

handle() public method

Handles UsernameCallback and PasswordCallback types. A UsernameCallback name property is set to the Prinicpal->getName() value. A PasswordCallback password property is set to the credential value.
public handle ( AppserverIo\Collections\CollectionInterface $callbacks ) : void
$callbacks AppserverIo\Collections\CollectionInterface The collection with the callbacks
return void

Property Details

$credential protected property

The principal's credential.
protected String,AppserverIo\Lang $credential
return AppserverIo\Lang\String

$principal protected property

The principal instance.
protected PrincipalInterface,AppserverIo\Psr\Security $principal
return AppserverIo\Psr\Security\PrincipalInterface