Beispiel #1
0
 /**
  * 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;
 }
Beispiel #2
0
 /**
  * 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;
 }
Beispiel #3
0
 /**
  * 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. */
 }