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

Public Member Functions

 __construct (\DOMElement $xml=null)
 Initialize a X509Data. More...
 

Data Fields

 $data = array()
 

Detailed Description

Definition at line 13 of file X509Data.php.

Constructor & Destructor Documentation

◆ __construct()

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

Initialize a X509Data.

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

Definition at line 30 of file X509Data.php.

31 {
32 if ($xml === null) {
33 return;
34 }
35
36 for ($n = $xml->firstChild; $n !== null; $n = $n->nextSibling) {
37 if (!($n instanceof \DOMElement)) {
38 continue;
39 }
40
41 if ($n->namespaceURI !== XMLSecurityDSig::XMLDSIGNS) {
42 $this->data[] = new Chunk($n);
43 continue;
44 }
45 switch ($n->localName) {
46 case 'X509Certificate':
47 $this->data[] = new X509Certificate($n);
48 break;
49 default:
50 $this->data[] = new Chunk($n);
51 break;
52 }
53 }
54 }
$n
Definition: RandomTest.php:85
$xml
Definition: metadata.php:240
$this data['403_header']

References $n, $xml, data, and RobRichards\XMLSecLibs\XMLSecurityDSig\XMLDSIGNS.

Field Documentation

◆ $data

SAML2\XML\ds\X509Data::$data = array()

Definition at line 23 of file X509Data.php.


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