PHP Class LdapTools\Operation\Handler\AuthenticationOperationHandler

Author: Chad Sikorra ([email protected])
Inheritance: implements LdapTools\Operation\Handler\OperationHandlerInterface, use trait OperationHandlerTrait
显示文件 Open project: ldaptools/ldaptools

Public Methods

Method Description
execute ( LdapTools\Operation\LdapOperationInterface $operation )
supports ( LdapTools\Operation\LdapOperationInterface $operation )

Protected Methods

Method Description
getAuthenticationResponse ( AuthenticationOperation $operation ) : AuthenticationResponse Attempts to connect with the given credentials and returns the response.
switchCredentials ( AuthenticationOperation $operation ) If the operation requested that the credentials be switched, then update the credential information in the connections config. Otherwise it will switch again on other auth-attempts or re-connects.

Method Details

execute() public method

public execute ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

getAuthenticationResponse() protected method

Attempts to connect with the given credentials and returns the response.
protected getAuthenticationResponse ( AuthenticationOperation $operation ) : AuthenticationResponse
$operation LdapTools\Operation\AuthenticationOperation
return LdapTools\Operation\AuthenticationResponse

supports() public method

public supports ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

switchCredentials() protected method

If the operation requested that the credentials be switched, then update the credential information in the connections config. Otherwise it will switch again on other auth-attempts or re-connects.
protected switchCredentials ( AuthenticationOperation $operation )
$operation LdapTools\Operation\AuthenticationOperation