Apache Authentication Resolver.
More...
|
| __construct ($path= '') |
| Constructor.
|
|
| setFile ($path) |
| Set the path to the credentials file.
|
|
| getFile () |
| Returns the path to the credentials file.
|
|
| resolve ($username, $realm, $password=null) |
| Resolve credentials.
|
|
__construct |
( |
|
$path = '' | ) |
|
Constructor.
- Parameters
-
string | $path | Complete filename where the credentials are stored |
Returns the Apache Password object.
- Returns
- ApachePassword
Returns the path to the credentials file.
- Returns
- string
resolve |
( |
|
$username, |
|
|
|
$realm, |
|
|
|
$password = null |
|
) |
| |
Resolve credentials.
- Parameters
-
string | $username | Username |
string | $realm | Authentication Realm |
string | $password | The password to authenticate |
- Returns
- AuthResult
- Exceptions
-
Exception\ExceptionInterface | |
Implements ResolverInterface.
Set the path to the credentials file.
- Parameters
-
- Returns
- self Provides a fluent interface
- Exceptions
-
Exception\InvalidArgumentException | if path is not readable |