Zend Framework
3.0
|
Public Member Functions | |
__construct (Storage\StorageInterface $storage=null, Adapter\AdapterInterface $adapter=null) | |
Constructor. | |
getAdapter () | |
Returns the authentication adapter. | |
setAdapter (Adapter\AdapterInterface $adapter) | |
Sets the authentication adapter. | |
getStorage () | |
Returns the persistent storage handler. | |
setStorage (Storage\StorageInterface $storage) | |
Sets the persistent storage handler. | |
authenticate (Adapter\AdapterInterface $adapter=null) | |
Authenticates against the supplied adapter. | |
hasIdentity () | |
Returns true if and only if an identity is available from storage. | |
getIdentity () | |
Returns the identity from storage or null if no identity is available. | |
clearIdentity () | |
Clears the identity from persistent storage. | |
Public Member Functions inherited from AuthenticationServiceInterface | |
authenticate () | |
Authenticates and provides an authentication result. | |
Protected Attributes | |
$storage = null | |
$adapter = null | |
__construct | ( | Storage\StorageInterface | $storage = null , |
Adapter\AdapterInterface | $adapter = null |
||
) |
Constructor.
Storage\StorageInterface | $storage | |
Adapter\AdapterInterface | $adapter |
authenticate | ( | Adapter\AdapterInterface | $adapter = null | ) |
Authenticates against the supplied adapter.
Adapter\AdapterInterface | $adapter |
Exception\RuntimeException |
ZF-7546 - prevent multiple successive calls from storing inconsistent results Ensure storage has clean state
clearIdentity | ( | ) |
getAdapter | ( | ) |
Returns the authentication adapter.
The adapter does not have a default if the storage adapter has not been set.
getIdentity | ( | ) |
Returns the identity from storage or null if no identity is available.
Implements AuthenticationServiceInterface.
getStorage | ( | ) |
hasIdentity | ( | ) |
Returns true if and only if an identity is available from storage.
Implements AuthenticationServiceInterface.
setAdapter | ( | Adapter\AdapterInterface | $adapter | ) |
Sets the authentication adapter.
Adapter\AdapterInterface | $adapter |
setStorage | ( | Storage\StorageInterface | $storage | ) |
Sets the persistent storage handler.
Storage\StorageInterface | $storage |
|
protected |
|
protected |