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

Public Member Functions

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

Data Fields

 $Id = null
 
 $info = array()
 

Detailed Description

Definition at line 13 of file KeyInfo.php.

Constructor & Destructor Documentation

◆ __construct()

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

Initialize a KeyInfo element.

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

Definition at line 37 of file KeyInfo.php.

38 {
39 if ($xml === null) {
40 return;
41 }
42
43 if ($xml->hasAttribute('Id')) {
44 $this->Id = $xml->getAttribute('Id');
45 }
46
47 for ($n = $xml->firstChild; $n !== null; $n = $n->nextSibling) {
48 if (!($n instanceof \DOMElement)) {
49 continue;
50 }
51
52 if ($n->namespaceURI !== XMLSecurityDSig::XMLDSIGNS) {
53 $this->info[] = new Chunk($n);
54 continue;
55 }
56 switch ($n->localName) {
57 case 'KeyName':
58 $this->info[] = new KeyName($n);
59 break;
60 case 'X509Data':
61 $this->info[] = new X509Data($n);
62 break;
63 default:
64 $this->info[] = new Chunk($n);
65 break;
66 }
67 }
68 }
$n
Definition: RandomTest.php:85
info()
Definition: info.php:2

References $n, $xml, info(), and RobRichards\XMLSecLibs\XMLSecurityDSig\XMLDSIGNS.

+ Here is the call graph for this function:

Field Documentation

◆ $Id

SAML2\XML\ds\KeyInfo::$Id = null

Definition at line 20 of file KeyInfo.php.

◆ $info

SAML2\XML\ds\KeyInfo::$info = array()

Definition at line 30 of file KeyInfo.php.


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