ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\XML\saml\Issuer Class Reference
+ Inheritance diagram for SAML2\XML\saml\Issuer:
+ Collaboration diagram for SAML2\XML\saml\Issuer:

Public Member Functions

 toXML (\DOMElement $parent=null)
 Convert this Issuer to XML. More...
 
- Public Member Functions inherited from SAML2\XML\saml\NameIDType
 __construct (\DOMElement $xml=null)
 Initialize a saml:NameIDType, either from scratch or from an existing . More...
 
 toXML (\DOMElement $parent=null)
 Convert this NameIDType to XML. More...
 
- Public Member Functions inherited from SAML2\XML\saml\BaseIDType
 __construct (\DOMElement $xml=null)
 Initialize a saml:BaseID, either from scratch or from an existing . More...
 
 toXML (\DOMElement $parent=null)
 Convert this BaseID to XML. More...
 
 __toString ()
 Get a string representation of this BaseIDType object. More...
 

Data Fields

 $Format = Constants::NAMEID_ENTITY
 
- Data Fields inherited from SAML2\XML\saml\NameIDType
 $Format = null
 
 $SPProvidedID = null
 
 $value = null
 
- Data Fields inherited from SAML2\XML\saml\BaseIDType
 $NameQualifier = null
 
 $SPNameQualifier = null
 

Protected Attributes

 $nodeName = 'saml:Issuer'
 
- Protected Attributes inherited from SAML2\XML\saml\BaseIDType
 $nodeName
 

Additional Inherited Members

- Static Public Member Functions inherited from SAML2\XML\saml\NameIDType
static fromArray (array $nameId)
 Create a object from an array with its contents. More...
 

Detailed Description

Definition at line 14 of file Issuer.php.

Member Function Documentation

◆ toXML()

SAML2\XML\saml\Issuer::toXML ( \DOMElement  $parent = null)

Convert this Issuer to XML.

Parameters
\DOMElement | null$parentThe element we should append to.
Returns
The current Issuer object converted into a .

Definition at line 53 of file Issuer.php.

References SAML2\XML\saml\NameIDType\$value, SAML2\DOMDocumentFactory\create(), SAML2\Constants\NAMEID_ENTITY, and SAML2\Constants\NS_SAML.

54  {
55  if ($this->Format !== Constants::NAMEID_ENTITY) {
56  return parent::toXML($parent);
57  }
58 
59  /*
60  * From saml-core-2.0-os 8.3.6, when the entity Format is used: "The NameQualifier, SPNameQualifier, and
61  * SPProvidedID attributes MUST be omitted."
62  */
63  if ($parent === null) {
64  $parent = DOMDocumentFactory::create();
65  $doc = $parent;
66  } else {
67  $doc = $parent->ownerDocument;
68  }
69  $element = $doc->createElementNS(Constants::NS_SAML, 'saml:Issuer');
70  $parent->appendChild($element);
71 
72  $value = $element->ownerDocument->createTextNode($this->value);
73  $element->appendChild($value);
74 
75  return $element;
76  }
const NAMEID_ENTITY
Entity NameID format.
Definition: Constants.php:185
const NS_SAML
The namespace for the SAML 2 assertions.
Definition: Constants.php:220
+ Here is the call graph for this function:

Field Documentation

◆ $Format

SAML2\XML\saml\Issuer::$Format = Constants::NAMEID_ENTITY

Definition at line 36 of file Issuer.php.

◆ $nodeName

SAML2\XML\saml\Issuer::$nodeName = 'saml:Issuer'
protected

Definition at line 43 of file Issuer.php.


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