69 parent::__construct(
'md:AttributeAuthorityDescriptor',
$xml);
78 if (empty($this->AttributeService)) {
79 throw new \Exception(
'Must have at least one AttributeService in AttributeAuthorityDescriptor.');
83 $this->AssertionIDRequestService[] =
new EndpointType($ep);
103 assert(is_array($this->AttributeService));
104 assert(!empty($this->AttributeService));
105 assert(is_array($this->AssertionIDRequestService));
106 assert(is_array($this->NameIDFormat));
107 assert(is_array($this->AttributeProfile));
110 $e = parent::toXML($parent);
112 foreach ($this->AttributeService as $ep) {
113 $ep->toXML($e,
'md:AttributeService');
116 foreach ($this->AssertionIDRequestService as $ep) {
117 $ep->toXML($e,
'md:AssertionIDRequestService');
__construct(\DOMElement $xml=null)
Initialize an IDPSSODescriptor.
static extractStrings(\DOMElement $parent, $namespaceURI, $localName)
Extract strings from a set of nodes.
$AssertionIDRequestService
static addStrings(\DOMElement $parent, $namespace, $name, $localized, array $values)
Append string elements.
const NS_MD
The namespace for the SAML 2 metadata.
static xpQuery(\DOMNode $node, $query)
Do an XPath query on an XML node.
Create styles array
The data for the language used.
toXML(\DOMElement $parent)
Add this AttributeAuthorityDescriptor to an EntityDescriptor.