Zend Framework
1.12
|
Public Member Functions | |
__construct ($path= '') | |
Constructor. | |
setFile ($path) | |
Set the path to the credentials file. | |
getFile () | |
Returns the path to the credentials file. | |
resolve ($username, $realm) | |
Resolve credentials. | |
Protected Attributes | |
$_file | |
__construct | ( | $path = '' | ) |
Constructor.
string | $path | Complete filename where the credentials are stored |
getFile | ( | ) |
Returns the path to the credentials file.
resolve | ( | $username, | |
$realm | |||
) |
Resolve credentials.
Only the first matching username/realm combination in the file is returned. If the file contains credentials for Digest authentication, the returned string is the password hash, or h(a1) from RFC 2617. The returned string is the plain-text password for Basic authentication.
The expected format of the file is: username:realm:sharedSecret
That is, each line consists of the user's username, the applicable authentication realm, and the password or hash, each delimited by colons.
string | $username | Username |
string | $realm | Authentication Realm |
Zend_Auth_Adapter_Http_Resolver_Exception |
Implements Zend_Auth_Adapter_Http_Resolver_Interface.
setFile | ( | $path | ) |
Set the path to the credentials file.
string | $path |
Zend_Auth_Adapter_Http_Resolver_Exception |
|
protected |