diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/InfoCard/Xml/KeyInfo/XmlDSig.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/InfoCard/Xml/KeyInfo/XmlDSig.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,76 @@ +registerXPathNamespace('e', 'http://www.w3.org/2001/04/xmlenc#'); + list($encryptedkey) = $this->xpath('//e:EncryptedKey'); + + if(!($encryptedkey instanceof Zend_InfoCard_Xml_Element)) { + throw new Zend_InfoCard_Xml_Exception("Failed to retrieve encrypted key"); + } + + return Zend_InfoCard_Xml_EncryptedKey::getInstance($encryptedkey); + } + + /** + * Returns the KeyInfo Block within the encrypted key + * + * @return Zend_InfoCard_Xml_KeyInfo_Default + */ + public function getKeyInfo() + { + return $this->getEncryptedKey()->getKeyInfo(); + } +}