Zend\Authentication\AuthenticationService
Synopsis
class AuthenticationService
implements
AuthenticationServiceInterface
{
- // methods
- public void __construct()
- public AdapterInterface|null getAdapter()
- public AuthenticationService setAdapter()
- public StorageInterface getStorage()
- public AuthenticationService setStorage()
- public Result authenticate()
- public bool hasIdentity()
- public mixed|null getIdentity()
- public void clearIdentity()
Hierarchy
Members
protected
- $adapter
—
Zend\Authentication\Adapter\AdapterInterface
Authentication adapter - $storage
—
Zend\Authentication\Storage\StorageInterface
Persistent storage handler
Methods
public
- __construct() — Constructor
- authenticate() — Authenticates against the supplied adapter
- clearIdentity() — Clears the identity from persistent storage
- getAdapter() — Returns the authentication adapter
- getIdentity() — Returns the identity from storage or null if no identity is available
- getStorage() — Returns the persistent storage handler
- hasIdentity() — Returns true if and only if an identity is available from storage
- setAdapter() — Sets the authentication adapter
- setStorage() — Sets the persistent storage handler