Methods

Constructor

__construct(\Zend\Authentication\Storage\StorageInterface $storage, \Zend\Authentication\Adapter\AdapterInterface $adapter) 

Authenticates against the supplied adapter

authenticate(\Zend\Authentication\Adapter\AdapterInterface $adapter) : \Zend\Authentication\Result

Clears the identity from persistent storage

clearIdentity() : void

Returns the authentication adapter

getAdapter() : \Zend\Authentication\Adapter\AdapterInterface | null

The adapter does not have a default if the storage adapter has not been set.

Returns

Returns the identity from storage or null if no identity is available

getIdentity() : mixed | null

Returns

mixednull

Returns the persistent storage handler

getStorage() : \Zend\Authentication\Storage\StorageInterface

Session storage is used by default unless a different storage adapter has been set.

Returns

Returns true if and only if an identity is available from storage

hasIdentity() : bool

Returns

bool

Sets the authentication adapter

setAdapter(\Zend\Authentication\Adapter\AdapterInterface $adapter) : \Zend\Authentication\AuthenticationService

Parameters

Returns

\Zend\Authentication\AuthenticationServiceProvides a fluent interface

Sets the persistent storage handler

setStorage(\Zend\Authentication\Storage\StorageInterface $storage) : \Zend\Authentication\AuthenticationService

Parameters

Returns

\Zend\Authentication\AuthenticationServiceProvides a fluent interface

 Properties

 

Authentication adapter

$adapter : \Zend\Authentication\Adapter\AdapterInterface

 

Persistent storage handler

$storage : \Zend\Authentication\Storage\StorageInterface