ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SAML2\XML\ds\KeyName Class Reference
+ Collaboration diagram for SAML2\XML\ds\KeyName:

Public Member Functions

 __construct (\DOMElement $xml=null)
 Initialize a KeyName element. More...
 
 toXML (\DOMElement $parent)
 Convert this KeyName element to XML. More...
 

Data Fields

 $name
 

Detailed Description

Definition at line 13 of file KeyName.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\XML\ds\KeyName::__construct ( \DOMElement  $xml = null)

Initialize a KeyName element.

Parameters
\DOMElement | null$xmlThe XML element we should load.

Definition at line 27 of file KeyName.php.

28 {
29 if ($xml === null) {
30 return;
31 }
32
33 $this->name = $xml->textContent;
34 }

References $xml.

Member Function Documentation

◆ toXML()

SAML2\XML\ds\KeyName::toXML ( \DOMElement  $parent)

Convert this KeyName element to XML.

Parameters
\DOMElement$parentThe element we should append this KeyName element to.
Returns
\DOMElement

Definition at line 42 of file KeyName.php.

43 {
44 assert(is_string($this->name));
45
46 return Utils::addString($parent, XMLSecurityDSig::XMLDSIGNS, 'ds:KeyName', $this->name);
47 }
static addString(\DOMElement $parent, $namespace, $name, $value)
Append string element.
Definition: Utils.php:635

References SAML2\Utils\addString(), and RobRichards\XMLSecLibs\XMLSecurityDSig\XMLDSIGNS.

+ Here is the call graph for this function:

Field Documentation

◆ $name

SAML2\XML\ds\KeyName::$name

Definition at line 20 of file KeyName.php.


The documentation for this class was generated from the following file: