ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Static Public Member Functions | |
static | checkSAMLMessage ($message, $type) |
This function performs some sanity checks on XML documents, and optionally validates them against their schema if the 'validatexml' debugging option is enabled. More... | |
static | debugSAMLMessage ($message, $type) |
Helper function to log SAML messages that we send or receive. More... | |
static | formatXMLString ($xml, $indentBase='') |
Format an XML string. More... | |
static | isDOMNodeOfType (\DOMNode $element, $name, $nsURI) |
This function checks if the DOMElement has the correct localName and namespaceURI. More... | |
|
static |
This function performs some sanity checks on XML documents, and optionally validates them against their schema if the 'validatexml' debugging option is enabled.
A warning will be printed to the log if validation fails.
string | $message | The SAML document we want to check. |
string | $type | The type of document. Can be one of:
|
Definition at line 35 of file XML.php.
References $debug, $message, $result, $type, array, SimpleSAML_Configuration\getInstance(), and SimpleSAML\Logger\warning().
Referenced by SimpleSAML\Bindings\Shib13\HTTPPost\decodeResponse(), SimpleSAML\Bindings\Shib13\HTTPPost\sendResponse(), and SimpleSAML_Utilities\validateXMLDocument().
|
static |
Helper function to log SAML messages that we send or receive.
string | \DOMElement | $message | The message, as an string containing the XML or an XML element. |
string | $type | Whether this message is sent or received, encrypted or decrypted. The following values are supported:
|
Definition at line 94 of file XML.php.
References $debug, $i, $message, $type, array, SimpleSAML\Logger\debug(), and SimpleSAML_Configuration\getInstance().
Referenced by SimpleSAML_Utilities\debugMessage(), SimpleSAML\Bindings\Shib13\HTTPPost\decodeResponse(), SimpleSAML\Bindings\Shib13\Artifact\extractResponse(), and SimpleSAML\Bindings\Shib13\HTTPPost\sendResponse().
|
static |
Format an XML string.
This function formats an XML string using the formatDOMElement() function.
string | $xml | An XML string which should be formatted. |
string | $indentBase | Optional indentation which should be applied to all the output. Optional, defaults to ''. |
Definition at line 246 of file XML.php.
References $i, $ret, $txt, $xml, array, and SAML2\DOMDocumentFactory\fromString().
Referenced by SimpleSAML_Utilities\formatXMLString().
|
static |
This function checks if the DOMElement has the correct localName and namespaceURI.
We also define the following shortcuts for namespaces:
\DOMNode | $element | The element we should check. |
string | $name | The local name the element should have. |
string | $nsURI | The namespaceURI the element should have. |
Definition at line 357 of file XML.php.
References $config, $errors, $name, $res, $schema, $xml, array, SimpleSAML\XML\Errors\begin(), SimpleSAML\XML\Errors\end(), SimpleSAML\XML\Errors\formatErrors(), SAML2\DOMDocumentFactory\fromString(), and SimpleSAML_Configuration\getInstance().
Referenced by SimpleSAML\Bindings\Shib13\Artifact\extractResponse(), and SimpleSAML_Utilities\isDOMElementOfType().