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) {
 
   90            if (!(
$n instanceof \DOMElement)) {
 
   97            switch (
$n->localName) {
 
  114    public function toXML(\DOMElement $parent)
 
  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 NotOnOrAfter
$sc SubjectConfirmationData InResponseTo
$sc SubjectConfirmationData Recipient
An exception for terminatinating execution or to throw for unit testing.
const NS_SAML
The namespace for the SAML 2 assertions.
static xsDateTimeToTimestamp($time)
This function converts a SAML2 timestamp on the form yyyy-mm-ddThh:mm:ss(.s+)?Z to a UNIX timestamp.
__construct(\DOMElement $xml=null)
Initialize (and parse) a SubjectConfirmationData element.