ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
X509Certificate.php
Go to the documentation of this file.
1<?php
2
3namespace SAML2\XML\ds;
4
7
14{
21
27 public function __construct(\DOMElement $xml = null)
28 {
29 if ($xml === null) {
30 return;
31 }
32
33 $this->certificate = $xml->textContent;
34 }
35
42 public function toXML(\DOMElement $parent)
43 {
44 assert(is_string($this->certificate));
45
46 return Utils::addString($parent, XMLSecurityDSig::XMLDSIGNS, 'ds:X509Certificate', $this->certificate);
47 }
48}
An exception for terminatinating execution or to throw for unit testing.
static addString(\DOMElement $parent, $namespace, $name, $value)
Append string element.
Definition: Utils.php:635
__construct(\DOMElement $xml=null)
Initialize an X509Certificate element.
toXML(\DOMElement $parent)
Convert this X509Certificate element to XML.