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(); } }