ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\XML\ds\X509Certificate Class Reference
+ Collaboration diagram for SAML2\XML\ds\X509Certificate:

Public Member Functions

 __construct (\DOMElement $xml=null)
 Initialize an X509Certificate element. More...
 
 toXML (\DOMElement $parent)
 Convert this X509Certificate element to XML. More...
 

Data Fields

 $certificate
 

Detailed Description

Definition at line 13 of file X509Certificate.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\XML\ds\X509Certificate::__construct ( \DOMElement  $xml = null)

Initialize an X509Certificate element.

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

Definition at line 27 of file X509Certificate.php.

References $xml.

28  {
29  if ($xml === null) {
30  return;
31  }
32 
33  $this->certificate = $xml->textContent;
34  }
$xml
Definition: metadata.php:240

Member Function Documentation

◆ toXML()

SAML2\XML\ds\X509Certificate::toXML ( \DOMElement  $parent)

Convert this X509Certificate element to XML.

Parameters
\DOMElement$parentThe element we should append this X509Certificate element to.
Returns

Definition at line 42 of file X509Certificate.php.

References SAML2\Utils\addString(), and RobRichards\XMLSecLibs\XMLSecurityDSig\XMLDSIGNS.

43  {
44  assert(is_string($this->certificate));
45 
46  return Utils::addString($parent, XMLSecurityDSig::XMLDSIGNS, 'ds:X509Certificate', $this->certificate);
47  }
static addString(\DOMElement $parent, $namespace, $name, $value)
Append string element.
Definition: Utils.php:635
+ Here is the call graph for this function:

Field Documentation

◆ $certificate

SAML2\XML\ds\X509Certificate::$certificate

Definition at line 20 of file X509Certificate.php.


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