Apache Authentication Resolver

see
package Default

 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 = null) : \Zend\Authentication\Result
inherited_from \Zend\Authentication\Adapter\Http\ResolverInterface::resolve()

Parameters

$username

string

Username

$realm

string

Authentication Realm

$password

string

The password to authenticate

Exceptions

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

Returns

\Zend\Authentication\Result

Set the path to the credentials file

setFile(string $path) : \Zend\Authentication\Adapter\Http\ApacheResolver
fluent This method is part of a fluent interface and will return the same instance

Parameters

$path

string

Exceptions

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

Returns

\Zend\Authentication\Adapter\Http\ApacheResolverProvides a fluent interface

Returns the Apache Password object

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

Returns

\Zend\Crypt\Password\Apache

 Properties

 

Apache password object

$apachePassword : \Zend\Crypt\Password\Apache

Default

 

Path to credentials file

$file : string

Default