ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

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

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  }
$xml
Definition: metadata.php:240
$n
Definition: RandomTest.php:85

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: