ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
setMessageValidated ($messageValidated) | |
Set whether this message was validated externally. More... | |
setXML ($xml) | |
setRelayState ($relayState) | |
getRelayState () | |
validate () | |
getSessionIndex () | |
Retrieve the session index of this response. More... | |
getIssuer () | |
getNameID () | |
generate (\SimpleSAML_Configuration $idp, \SimpleSAML_Configuration $sp, $shire, $attributes) | |
Build a authentication response. More... | |
Data Fields | |
const | SHIB_PROTOCOL_NS = 'urn:oasis:names:tc:SAML:1.0:protocol' |
const | SHIB_ASSERT_NS = 'urn:oasis:names:tc:SAML:1.0:assertion' |
Static Protected Member Functions | |
static | checkDateConditions ($start=null, $end=null) |
Check if we are currently between the given date & time conditions. More... | |
Private Member Functions | |
isNodeValidated ($node) | |
Checks if the given node is validated by the signature on this response. More... | |
doXPathQuery ($query, $node=null) | |
This function runs an xPath query on this authentication response. More... | |
enc_attribute ($name, $values, $base64, $scopedAttributes) | |
Format a shib13 attribute. More... | |
Private Attributes | |
$validator = null | |
$messageValidated = false | |
$dom | |
$relayState = null | |
Definition at line 19 of file AuthnResponse.php.
|
staticprotected |
Check if we are currently between the given date & time conditions.
Note that this function allows a 10-minute leap from the initial time as marked by $start.
string | null | $start | A SAML2 timestamp marking the start of the period to check. Defaults to null, in which case there's no limitations in the past. |
string | null | $end | A SAML2 timestamp marking the end of the period to check. Defaults to null, in which case there's no limitations in the future. |
Definition at line 459 of file AuthnResponse.php.
References $end, time, and SAML2\Utils\xsDateTimeToTimestamp().
|
private |
This function runs an xPath query on this authentication response.
string | $query | The query which should be run. |
\DOMNode | $node | The node which this query is relative to. If this node is NULL (the default) then the query will be relative to the root of the response. |
Definition at line 164 of file AuthnResponse.php.
References $query.
Referenced by SimpleSAML\XML\Shib13\AuthnResponse\getIssuer(), SimpleSAML\XML\Shib13\AuthnResponse\getNameID(), and SimpleSAML\XML\Shib13\AuthnResponse\getSessionIndex().
|
private |
Format a shib13 attribute.
string | $name | Name of the attribute. |
array | $values | Values of the attribute (as an array of strings). |
bool | $base64 | Whether the attriubte values should be base64-encoded. |
array | $scopedAttributes | Array of attributes names which are scoped. |
Definition at line 407 of file AuthnResponse.php.
References $name.
Referenced by SimpleSAML\XML\Shib13\AuthnResponse\generate().
SimpleSAML\XML\Shib13\AuthnResponse::generate | ( | \SimpleSAML_Configuration | $idp, |
\SimpleSAML_Configuration | $sp, | ||
$shire, | |||
$attributes | |||
) |
Build a authentication response.
\SimpleSAML_Configuration | $idp | Metadata for the IdP the response is sent from. |
\SimpleSAML_Configuration | $sp | Metadata for the SP the response is sent to. |
string | $shire | The endpoint on the SP the response is sent to. |
array | null | $attributes | The attributes which should be included in the response. |
Definition at line 307 of file AuthnResponse.php.
References $attributes, $id, $name, $nameid, $response, $spEntityId, array, SimpleSAML\XML\Shib13\AuthnResponse\enc_attribute(), SimpleSAML\Utils\Random\generateID(), SimpleSAML\Utils\Time\generateTimestamp(), SimpleSAML_Configuration\getArray(), SimpleSAML_Configuration\getBoolean(), SimpleSAML_Configuration\getString(), SimpleSAML_Configuration\hasValue(), and time.
SimpleSAML\XML\Shib13\AuthnResponse::getIssuer | ( | ) |
Definition at line 270 of file AuthnResponse.php.
References $query, and SimpleSAML\XML\Shib13\AuthnResponse\doXPathQuery().
Referenced by SimpleSAML\XML\Shib13\AuthnResponse\getSessionIndex(), and SimpleSAML\XML\Shib13\AuthnResponse\validate().
SimpleSAML\XML\Shib13\AuthnResponse::getNameID | ( | ) |
Definition at line 282 of file AuthnResponse.php.
References $query, array, and SimpleSAML\XML\Shib13\AuthnResponse\doXPathQuery().
SimpleSAML\XML\Shib13\AuthnResponse::getRelayState | ( | ) |
Definition at line 78 of file AuthnResponse.php.
References SimpleSAML\XML\Shib13\AuthnResponse\$relayState.
SimpleSAML\XML\Shib13\AuthnResponse::getSessionIndex | ( | ) |
Retrieve the session index of this response.
Definition at line 187 of file AuthnResponse.php.
References $attributes, $end, $metadata, $name, $query, array, SimpleSAML\XML\Shib13\AuthnResponse\doXPathQuery(), Monolog\Handler\error_log(), SimpleSAML\XML\Shib13\AuthnResponse\getIssuer(), SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler(), and SimpleSAML\XML\Shib13\AuthnResponse\isNodeValidated().
|
private |
Checks if the given node is validated by the signature on this response.
\DOMElement | $node | Node to be validated. |
Definition at line 134 of file AuthnResponse.php.
Referenced by SimpleSAML\XML\Shib13\AuthnResponse\getSessionIndex().
SimpleSAML\XML\Shib13\AuthnResponse::setMessageValidated | ( | $messageValidated | ) |
Set whether this message was validated externally.
bool | $messageValidated | TRUE if the message is already validated, FALSE if not. |
Definition at line 54 of file AuthnResponse.php.
References SimpleSAML\XML\Shib13\AuthnResponse\$messageValidated.
SimpleSAML\XML\Shib13\AuthnResponse::setRelayState | ( | $relayState | ) |
Definition at line 73 of file AuthnResponse.php.
References SimpleSAML\XML\Shib13\AuthnResponse\$relayState.
SimpleSAML\XML\Shib13\AuthnResponse::setXML | ( | $xml | ) |
Definition at line 62 of file AuthnResponse.php.
References $xml, and SAML2\DOMDocumentFactory\fromString().
SimpleSAML\XML\Shib13\AuthnResponse::validate | ( | ) |
Definition at line 83 of file AuthnResponse.php.
References $issuer, $key, $metadata, array, SimpleSAML\Utils\Config\getCertPath(), SimpleSAML\XML\Shib13\AuthnResponse\getIssuer(), and SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler().
|
private |
Definition at line 41 of file AuthnResponse.php.
|
private |
Definition at line 31 of file AuthnResponse.php.
Referenced by SimpleSAML\XML\Shib13\AuthnResponse\setMessageValidated().
|
private |
Definition at line 46 of file AuthnResponse.php.
Referenced by SimpleSAML\XML\Shib13\AuthnResponse\getRelayState(), and SimpleSAML\XML\Shib13\AuthnResponse\setRelayState().
|
private |
Definition at line 25 of file AuthnResponse.php.
const SimpleSAML\XML\Shib13\AuthnResponse::SHIB_ASSERT_NS = 'urn:oasis:names:tc:SAML:1.0:assertion' |
Definition at line 35 of file AuthnResponse.php.
const SimpleSAML\XML\Shib13\AuthnResponse::SHIB_PROTOCOL_NS = 'urn:oasis:names:tc:SAML:1.0:protocol' |
Definition at line 34 of file AuthnResponse.php.