Zend Framework  3.0
Public Member Functions | List of all members
ResolverInterface Interface Reference

Auth HTTP Resolver Interface. More...

Public Member Functions

 resolve ($username, $realm, $password=null)
 Resolve username/realm to password/hash/etc.
 

Detailed Description

Auth HTTP Resolver Interface.

Defines an interface to resolve a username/realm combination into a shared secret usable by HTTP Authentication.

Member Function Documentation

resolve (   $username,
  $realm,
  $password = null 
)

Resolve username/realm to password/hash/etc.

Parameters
string$usernameUsername
string$realmAuthentication Realm
string$passwordPassword (optional)
Returns
string|array|false User's shared secret as string if found in realm, or User's identity as array if resolved, false otherwise.

Implemented in ApacheResolver, and FileResolver.