|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Auth |
|
17 * @subpackage Zend_Auth_Adapter_Http |
|
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $ |
|
21 */ |
|
22 |
|
23 |
|
24 /** |
|
25 * Auth HTTP Resolver Interface |
|
26 * |
|
27 * Defines an interace to resolve a username/realm combination into a shared |
|
28 * secret usable by HTTP Authentication. |
|
29 * |
|
30 * @category Zend |
|
31 * @package Zend_Auth |
|
32 * @subpackage Zend_Auth_Adapter_Http |
|
33 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
34 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
35 */ |
|
36 interface Zend_Auth_Adapter_Http_Resolver_Interface |
|
37 { |
|
38 /** |
|
39 * Resolve username/realm to password/hash/etc. |
|
40 * |
|
41 * @param string $username Username |
|
42 * @param string $realm Authentication Realm |
|
43 * @return string|false User's shared secret, if the user is found in the |
|
44 * realm, false otherwise. |
|
45 */ |
|
46 public function resolve($username, $realm); |
|
47 } |