Interface.php 2.1 KB

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