Apache Authentication Resolver

see \Zend\Authentication\Adapter\Http\http://httpd.apache.org/docs/2.2/misc/password_encryptions.html

 Methods

Constructor

__construct(string $path) 

Parameters

$path

string

Complete filename where the credentials are stored

Returns the path to the credentials file

getFile() : string

Returns

string

Resolve credentials

resolve(string $username, string $realm, string $password) : \Zend\Authentication\Result

Parameters

$username

string

Username

$realm

string

Authentication Realm

$password

string

The password to authenticate

Exceptions

\Zend\Authentication\Adapter\Http\Exception\ExceptionInterface

Returns

Set the path to the credentials file

setFile(string $path) : \Zend\Authentication\Adapter\Http\FileResolver

Parameters

$path

string

Exceptions

\Zend\Authentication\Adapter\Http\Exception\InvalidArgumentException if path is not readable

Returns

Returns the Apache Password object

getApachePassword() : \Zend\Crypt\Password\Apache

 Properties

 

Apache password object

$apachePassword : \Zend\Crypt\Password\Apache

 

Path to credentials file

$file : string