| Fully Qualified Name: | Zend\Authentication\Adapter\Callback | 
| Extends: | AbstractAdapter | 
Authentication Adapter authenticates using callback function.
The Callback function must return an identity on authentication success, and false on authentication failure.
| Name | Description | Defined By | 
|---|---|---|
| __construct() | Callback | |
| authenticate() | Authenticate using the provided callback | Callback | 
| getCallback() | Gets the value of callback. | Callback | 
| getCredential() | Returns the credential of the account being authenticated, or NULL if none is set. | AbstractAdapter | 
| getIdentity() | Returns the identity of the account being authenticated, or NULL if none is set. | AbstractAdapter | 
| setCallback() | Sets the value of callback. | Callback | 
| setCredential() | Sets the credential for binding | AbstractAdapter | 
| setIdentity() | Sets the identity for binding | AbstractAdapter | 
| Parameter Name | Type | Description | 
|---|---|---|
| $callback | callable | The | 
Returns:
Authenticate using the provided callback
Returns: \Result The authentication result
Gets the value of callback.
Returns: null|callable
Returns the credential of the account being authenticated, or NULL if none is set.
Returns: mixed
Returns the identity of the account being authenticated, or NULL if none is set.
Returns: mixed
Sets the value of callback.
| Parameter Name | Type | Description | 
|---|---|---|
| $callback | callable | the | 
Returns:
Sets the credential for binding
| Parameter Name | Type | Description | 
|---|---|---|
| $credential | mixed | 
Returns: self Provides a fluent interface
Sets the identity for binding
| Parameter Name | Type | Description | 
|---|---|---|
| $identity | mixed | 
Returns: self Provides a fluent interface