ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
X509Certificate.php
Go to the documentation of this file.
1 <?php
2 
3 namespace SAML2\XML\ds;
4 
6 use SAML2\Utils;
7 
14 {
20  public $certificate;
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 }
__construct(\DOMElement $xml=null)
Initialize an X509Certificate element.
$xml
Definition: metadata.php:240
static addString(\DOMElement $parent, $namespace, $name, $value)
Append string element.
Definition: Utils.php:635
toXML(\DOMElement $parent)
Convert this X509Certificate element to XML.