53 parent::__construct(
'md:SPSSODescriptor',
$xml);
79 assert(is_null($this->AuthnRequestsSigned) || is_bool($this->AuthnRequestsSigned));
80 assert(is_null($this->WantAssertionsSigned) || is_bool($this->WantAssertionsSigned));
81 assert(is_array($this->AssertionConsumerService));
84 $e = parent::toXML($parent);
86 if ($this->AuthnRequestsSigned ===
true) {
87 $e->setAttribute(
'AuthnRequestsSigned',
'true');
88 } elseif ($this->AuthnRequestsSigned ===
false) {
89 $e->setAttribute(
'AuthnRequestsSigned',
'false');
92 if ($this->WantAssertionsSigned ===
true) {
93 $e->setAttribute(
'WantAssertionsSigned',
'true');
94 } elseif ($this->WantAssertionsSigned ===
false) {
95 $e->setAttribute(
'WantAssertionsSigned',
'false');
98 foreach ($this->AssertionConsumerService as $ep) {
99 $ep->toXML($e,
'md:AssertionConsumerService');
toXML(\DOMElement $parent)
Add this SPSSODescriptor to an EntityDescriptor.
__construct(\DOMElement $xml=null)
Initialize a SPSSODescriptor.
static parseBoolean(\DOMElement $node, $attributeName, $default=null)
Parse a boolean attribute.
$AssertionConsumerService
static xpQuery(\DOMNode $node, $query)
Do an XPath query on an XML node.
$AttributeConsumingService