Authentication Adapter authenticates using callback function.
The Callback function must return an identity on authentication success,
and false on authentication failure.
Methods
__construct()
__construct(\Zend\Authentication\Adapter\callable $callback)
Parameters
$callback
\Zend\Authentication\Adapter\callable
The authentication callback
Gets the value of callback.
getCallback() : null | \Zend\Authentication\Adapter\callable
Returns
null
\Zend\Authentication\Adapter\callable
Returns the credential of the account being authenticated, or
NULL if none is set.
getCredential() : mixed
Inherited
inherited_from |
\Zend\Authentication\Adapter\AbstractAdapter::getCredential() |
Returns
mixed
Returns the identity of the account being authenticated, or
NULL if none is set.
getIdentity() : mixed
Inherited
inherited_from |
\Zend\Authentication\Adapter\AbstractAdapter::getIdentity() |
Returns
mixed
Sets the value of callback.
setCallback(\Zend\Authentication\Adapter\callable $callback)
Parameters
$callback
\Zend\Authentication\Adapter\callable
the callback
Exceptions
Sets the credential for binding
setCredential(mixed $credential) : \Zend\Authentication\Adapter\AbstractAdapter
Inherited
inherited_from |
\Zend\Authentication\Adapter\AbstractAdapter::setCredential() |
Parameters
$credential
mixed
Returns
Sets the identity for binding
setIdentity(mixed $identity) : \Zend\Authentication\Adapter\AbstractAdapter
Inherited
inherited_from |
\Zend\Authentication\Adapter\AbstractAdapter::setIdentity() |
Parameters
$identity
mixed
Returns
Properties
$callback
$callback : \Zend\Authentication\Adapter\callable
$credential
$credential : mixed
Inherited
inherited_from |
\Zend\Authentication\Adapter\AbstractAdapter::$$credential |
$identity
$identity : mixed
Inherited
inherited_from |
\Zend\Authentication\Adapter\AbstractAdapter::$$identity |