Definition at line 12 of file SPSSODescriptor.php.
◆ __construct()
SAML2\XML\md\SPSSODescriptor::__construct |
( |
\DOMElement |
$xml = null | ) |
|
Initialize a SPSSODescriptor.
- Parameters
-
\DOMElement | null | $xml | The XML element we should load. |
Definition at line 51 of file SPSSODescriptor.php.
References $xml, SAML2\Utils\parseBoolean(), and SAML2\Utils\xpQuery().
53 parent::__construct(
'md:SPSSODescriptor',
$xml);
63 $this->AssertionConsumerService[] =
new IndexedEndpointType($ep);
67 $this->AttributeConsumingService[] =
new AttributeConsumingService($acs);
static parseBoolean(\DOMElement $node, $attributeName, $default=null)
Parse a boolean attribute.
static xpQuery(\DOMNode $node, $query)
Do an XPath query on an XML node.
◆ toXML()
SAML2\XML\md\SPSSODescriptor::toXML |
( |
\DOMElement |
$parent | ) |
|
Add this SPSSODescriptor to an EntityDescriptor.
- Parameters
-
- Returns
- void
Definition at line 77 of file SPSSODescriptor.php.
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));
82 assert(is_array($this->AttributeConsumingService));
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');
102 foreach ($this->AttributeConsumingService as $acs) {
◆ $AssertionConsumerService
SAML2\XML\md\SPSSODescriptor::$AssertionConsumerService = array() |
◆ $AttributeConsumingService
SAML2\XML\md\SPSSODescriptor::$AttributeConsumingService = array() |
◆ $AuthnRequestsSigned
SAML2\XML\md\SPSSODescriptor::$AuthnRequestsSigned = null |
◆ $WantAssertionsSigned
SAML2\XML\md\SPSSODescriptor::$WantAssertionsSigned = null |
The documentation for this class was generated from the following file: