Non-Persistent Authentication Storage

Since HTTP Authentication happens again on each request, this will always be re-populated. So there's no need to use sessions, this simple value class will hold the data for rest of the current request.

category Zend
package Zend_Authentication
subpackage Storage

 Methods

Clears contents from storage

clear() : void

Exceptions

\Zend\Authentication\Exception\ExceptionInterface If clearing contents from storage is impossible

Returns true if and only if storage is empty

isEmpty() : bool

Exceptions

\Zend\Authentication\Exception\ExceptionInterface If it is impossible to determine whether storage is empty

Returns

bool

Returns the contents of storage Behavior is undefined when storage is empty.

read() : mixed

Behavior is undefined when storage is empty.

Exceptions

\Zend\Authentication\Exception\ExceptionInterface If reading contents from storage is impossible

Returns

mixed

Writes $contents to storage

write(mixed $contents) : void

Parameters

$contents

mixed

Exceptions

\Zend\Authentication\Exception\ExceptionInterface If writing $contents to storage is impossible

 Properties

 

Holds the actual auth data

$data