|
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_InfoCard |
|
17 * @subpackage Zend_InfoCard_Xml |
|
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 * The Interface required by any InfoCard Assertion Object implemented within the component |
|
25 * |
|
26 * @category Zend |
|
27 * @package Zend_InfoCard |
|
28 * @subpackage Zend_InfoCard_Xml |
|
29 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
30 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
31 */ |
|
32 interface Zend_InfoCard_Xml_Assertion_Interface |
|
33 { |
|
34 /** |
|
35 * Get the Assertion ID of the assertion |
|
36 * |
|
37 * @return string The Assertion ID |
|
38 */ |
|
39 public function getAssertionID(); |
|
40 |
|
41 /** |
|
42 * Return an array of attributes (claims) contained within the assertion |
|
43 * |
|
44 * @return array An array of attributes / claims within the assertion |
|
45 */ |
|
46 public function getAttributes(); |
|
47 |
|
48 /** |
|
49 * Get the Assertion URI for this type of Assertion |
|
50 * |
|
51 * @return string the Assertion URI |
|
52 */ |
|
53 public function getAssertionURI(); |
|
54 |
|
55 /** |
|
56 * Return an array of conditions which the assertions are predicated on |
|
57 * |
|
58 * @return array an array of conditions |
|
59 */ |
|
60 public function getConditions(); |
|
61 |
|
62 /** |
|
63 * Validate the conditions array returned from the getConditions() call |
|
64 * |
|
65 * @param array $conditions An array of condtions for the assertion taken from getConditions() |
|
66 * @return mixed Boolean true on success, an array of condition, error message on failure |
|
67 */ |
|
68 public function validateConditions(Array $conditions); |
|
69 } |