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

Public Member Functions

 __construct (\DOMElement $xml=null)
 Initialize (and parse) a SubjectConfirmationData element. More...
 

Data Fields

 $NotBefore
 
 $NotOnOrAfter
 
 $Recipient
 
 $InResponseTo
 
 $Address
 
 $info = array()
 

Detailed Description

Definition at line 16 of file SubjectConfirmationData.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\XML\saml\SubjectConfirmationData::__construct ( \DOMElement  $xml = null)

Initialize (and parse) a SubjectConfirmationData element.

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

Definition at line 68 of file SubjectConfirmationData.php.

69 {
70 if ($xml === null) {
71 return;
72 }
73
74 if ($xml->hasAttribute('NotBefore')) {
75 $this->NotBefore = Utils::xsDateTimeToTimestamp($xml->getAttribute('NotBefore'));
76 }
77 if ($xml->hasAttribute('NotOnOrAfter')) {
78 $this->NotOnOrAfter = Utils::xsDateTimeToTimestamp($xml->getAttribute('NotOnOrAfter'));
79 }
80 if ($xml->hasAttribute('Recipient')) {
81 $this->Recipient = $xml->getAttribute('Recipient');
82 }
83 if ($xml->hasAttribute('InResponseTo')) {
84 $this->InResponseTo = $xml->getAttribute('InResponseTo');
85 }
86 if ($xml->hasAttribute('Address')) {
87 $this->Address = $xml->getAttribute('Address');
88 }
89 for ($n = $xml->firstChild; $n !== null; $n = $n->nextSibling) {
90 if (!($n instanceof \DOMElement)) {
91 continue;
92 }
93 if ($n->namespaceURI !== XMLSecurityDSig::XMLDSIGNS) {
94 $this->info[] = new Chunk($n);
95 continue;
96 }
97 switch ($n->localName) {
98 case 'KeyInfo':
99 $this->info[] = new KeyInfo($n);
100 break;
101 default:
102 $this->info[] = new Chunk($n);
103 break;
104 }
105 }
106 }
$n
Definition: RandomTest.php:85
$sc SubjectConfirmationData NotOnOrAfter
$sc SubjectConfirmationData InResponseTo
$sc SubjectConfirmationData Recipient
static xsDateTimeToTimestamp($time)
This function converts a SAML2 timestamp on the form yyyy-mm-ddThh:mm:ss(.s+)?Z to a UNIX timestamp.
Definition: Utils.php:721
info()
Definition: info.php:2

References $n, $xml, info(), InResponseTo, NotOnOrAfter, Recipient, RobRichards\XMLSecLibs\XMLSecurityDSig\XMLDSIGNS, and SAML2\Utils\xsDateTimeToTimestamp().

+ Here is the call graph for this function:

Field Documentation

◆ $Address

SAML2\XML\saml\SubjectConfirmationData::$Address

Definition at line 51 of file SubjectConfirmationData.php.

◆ $info

SAML2\XML\saml\SubjectConfirmationData::$info = array()

Definition at line 61 of file SubjectConfirmationData.php.

◆ $InResponseTo

SAML2\XML\saml\SubjectConfirmationData::$InResponseTo

Definition at line 44 of file SubjectConfirmationData.php.

◆ $NotBefore

SAML2\XML\saml\SubjectConfirmationData::$NotBefore

Definition at line 23 of file SubjectConfirmationData.php.

◆ $NotOnOrAfter

SAML2\XML\saml\SubjectConfirmationData::$NotOnOrAfter

Definition at line 30 of file SubjectConfirmationData.php.

◆ $Recipient

SAML2\XML\saml\SubjectConfirmationData::$Recipient

Definition at line 37 of file SubjectConfirmationData.php.


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