74 if (
$xml->hasAttribute(
'NotBefore')) {
77 if (
$xml->hasAttribute(
'NotOnOrAfter')) {
80 if (
$xml->hasAttribute(
'Recipient')) {
83 if (
$xml->hasAttribute(
'InResponseTo')) {
86 if (
$xml->hasAttribute(
'Address')) {
87 $this->Address =
$xml->getAttribute(
'Address');
89 for (
$n =
$xml->firstChild;
$n !== null;
$n =
$n->nextSibling) {
97 switch (
$n->localName) {
116 assert(is_null($this->NotBefore) || is_int($this->NotBefore));
120 assert(is_null($this->Address) || is_string($this->Address));
122 $e = $parent->ownerDocument->createElementNS(
Constants::NS_SAML,
'saml:SubjectConfirmationData');
123 $parent->appendChild($e);
125 if (isset($this->NotBefore)) {
126 $e->setAttribute(
'NotBefore', gmdate(
'Y-m-d\TH:i:s\Z', $this->NotBefore));
129 $e->setAttribute(
'NotOnOrAfter', gmdate(
'Y-m-d\TH:i:s\Z', $this->
NotOnOrAfter));
132 $e->setAttribute(
'Recipient', $this->
Recipient);
137 if (isset($this->Address)) {
138 $e->setAttribute(
'Address', $this->Address);
141 foreach ($this->info as
$n) {
$sc SubjectConfirmationData InResponseTo
$sc SubjectConfirmationData Recipient
__construct(\DOMElement $xml=null)
Initialize (and parse) a SubjectConfirmationData element.
Create styles array
The data for the language used.
static xsDateTimeToTimestamp($time)
This function converts a SAML2 timestamp on the form yyyy-mm-ddThh:mm:ss(.s+)?Z to a UNIX timestamp...
$sc SubjectConfirmationData NotOnOrAfter
const NS_SAML
The namespace for the SAML 2 assertions.