24 parent::__construct(
'Response',
$xml);
26 $this->assertions = array();
32 for ($node =
$xml->firstChild; $node !== null; $node = $node->nextSibling) {
33 if ($node->namespaceURI !== Constants::NS_SAML) {
37 if ($node->localName ===
'Assertion') {
38 $this->assertions[] =
new Assertion($node);
39 } elseif ($node->localName ===
'EncryptedAssertion') {
52 return $this->assertions;
62 $this->assertions = $assertions;
70 public function toUnsignedXML()
72 $root = parent::toUnsignedXML();
75 foreach ($this->assertions as $assertion) {
76 $assertion->toXML(
$root);
getAssertions()
Retrieve the assertions in this response.
setAssertions(array $assertions)
Set the assertions that should be included in this response.
__construct(\DOMElement $xml=null)
Constructor for SAML 2 response messages.
$assertions
The assertions in this response.