コード例 #1
0
ファイル: Response.php プロジェクト: SysBind/saml2
 /**
  * Convert the response message to an XML element.
  *
  * @return \DOMElement This response.
  */
 public function toUnsignedXML()
 {
     $root = parent::toUnsignedXML();
     /** @var \SAML2\Assertion|\SAML2\EncryptedAssertion $assertion */
     foreach ($this->assertions as $assertion) {
         $assertion->toXML($root);
     }
     return $root;
 }
コード例 #2
0
ファイル: ArtifactResponse.php プロジェクト: SysBind/saml2
 /**
  * Convert the response message to an XML element.
  *
  * @return \DOMElement This response.
  */
 public function toUnsignedXML()
 {
     $root = parent::toUnsignedXML();
     if (isset($this->any)) {
         $node = $root->ownerDocument->importNode($this->any, true);
         $root->appendChild($node);
     }
     return $root;
 }
コード例 #3
0
ファイル: LogoutResponse.php プロジェクト: SysBind/saml2
 /**
  * Constructor for SAML 2 response messages.
  *
  * @param \DOMElement|null $xml     The input message.
  */
 public function __construct(\DOMElement $xml = null)
 {
     parent::__construct('LogoutResponse', $xml);
     /* No new fields added by LogoutResponse. */
 }