HTTP Authentication File Resolver
__construct(string $path)
stringComplete filename where the credentials are stored
getFile() : string
stringresolve(string $username, string $realm, $password) : string | false
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.
stringUsername
stringAuthentication Realm
\Zend\Authentication\Adapter\Http\Exception\ExceptionInterface | 
|---|
stringfalseUser's shared secret, if the user is found in the realm, false otherwise.setFile(string $path) : \Zend\Authentication\Adapter\Http\FileResolver
string
\Zend\Authentication\Adapter\Http\Exception\InvalidArgumentException | 
if path is not readable | 
|---|
\Zend\Authentication\Adapter\Http\FileResolverProvides a fluent interface$file : string