コード例 #1
0
ファイル: XmlSecTest.php プロジェクト: theprincy/php-saml
 public function testValidateAssertionValid()
 {
     $assertion = file_get_contents(TEST_ROOT . '/data/responses/valid_response.xml.base64');
     $response = new OneLogin_Saml_Response($this->_settings, $assertion);
     $xmlSec = new OneLogin_Saml_XmlSec($this->_settings, $response);
     $this->assertTrue($xmlSec->isValid());
 }
コード例 #2
0
ファイル: Response.php プロジェクト: relaxnow/php-saml
 /**
  * Determine if the SAML Response is valid using the certificate.
  *
  * @throws Exception
  * @return bool Validate the document
  */
 public function isValid()
 {
     $xmlSec = new OneLogin_Saml_XmlSec($this->_settings, $this);
     return $xmlSec->isValid();
 }