Zend Framework
3.0
|
Authentication Adapter authenticates using callback function. More...
Public Member Functions | |
__construct ($callback=null) | |
authenticate () | |
Authenticate using the provided callback. | |
getCallback () | |
Gets the value of callback. | |
setCallback ($callback) | |
Sets the value of callback. | |
Public Member Functions inherited from AbstractAdapter | |
getCredential () | |
Returns the credential of the account being authenticated, or NULL if none is set. | |
setCredential ($credential) | |
Sets the credential for binding. | |
getIdentity () | |
Returns the identity of the account being authenticated, or NULL if none is set. | |
setIdentity ($identity) | |
Sets the identity for binding. | |
Protected Attributes | |
$callback | |
Protected Attributes inherited from AbstractAdapter | |
$credential | |
$identity | |
Authentication Adapter authenticates using callback function.
The Callback function must return an identity on authentication success, and false on authentication failure.
__construct | ( | $callback = null | ) |
callable | $callback | The authentication callback |
authenticate | ( | ) |
Authenticate using the provided callback.
RuntimeException |
Implements AdapterInterface.
getCallback | ( | ) |
Gets the value of callback.
setCallback | ( | $callback | ) |
Sets the value of callback.
callable | $callback | the callback |
InvalidArgumentException |
|
protected |