ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Static Public Member Functions | |
static | addSign (SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata, \SAML2\SignedElement $element) |
Add signature key and sender certificate to an element (Message or Assertion). More... | |
static | checkSign (SimpleSAML_Configuration $srcMetadata, \SAML2\SignedElement $element) |
Check the signature on a SAML2 message or assertion. More... | |
static | validateMessage (SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata, \SAML2\Message $message) |
Check signature on a SAML2 message if enabled. More... | |
static | getDecryptionKeys (SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata) |
Retrieve the decryption keys from metadata. More... | |
static | getBlacklistedAlgorithms (SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata) |
Retrieve blacklisted algorithms. More... | |
static | getResponseError (\SAML2\StatusResponse $response) |
Retrieve the status code of a response as a sspmod_saml_Error. More... | |
static | buildAuthnRequest (SimpleSAML_Configuration $spMetadata, SimpleSAML_Configuration $idpMetadata) |
Build an authentication request based on information in the metadata. More... | |
static | buildLogoutRequest (SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata) |
Build a logout request based on information in the metadata. More... | |
static | buildLogoutResponse (SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata) |
Build a logout response based on information in the metadata. More... | |
static | processResponse (SimpleSAML_Configuration $spMetadata, SimpleSAML_Configuration $idpMetadata, \SAML2\Response $response) |
Process a response message. More... | |
static | getEncryptionKey (SimpleSAML_Configuration $metadata) |
Retrieve the encryption key for the given entity. More... | |
Static Private Member Functions | |
static | addRedirectSign (SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata, \SAML2\Message $message) |
Add signature key and and senders certificate to message. More... | |
static | findCertificate (array $certFingerprints, array $certificates) |
Find the certificate used to sign a message or assertion. More... | |
static | decryptAssertion (SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata, $assertion) |
Decrypt an assertion. More... | |
static | decryptAttributes (SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata, \SAML2\Assertion &$assertion) |
Decrypt any encrypted attributes in an assertion. More... | |
static | processAssertion (SimpleSAML_Configuration $spMetadata, SimpleSAML_Configuration $idpMetadata, \SAML2\Response $response, $assertion, $responseSigned) |
Process an assertion in a response. More... | |
Definition at line 10 of file Message.php.
|
staticprivate |
Add signature key and and senders certificate to message.
SimpleSAML_Configuration | $srcMetadata | The metadata of the sender. |
SimpleSAML_Configuration | $dstMetadata | The metadata of the recipient. |
\SAML2\Message | $message | The message we should add the data to. |
Definition at line 69 of file Message.php.
References SimpleSAML_Configuration\getBoolean().
|
static |
Add signature key and sender certificate to an element (Message or Assertion).
SimpleSAML_Configuration | $srcMetadata | The metadata of the sender. |
SimpleSAML_Configuration | $dstMetadata | The metadata of the recipient. |
\SAML2\SignedElement | $element | The element we should add the data to. |
Definition at line 20 of file Message.php.
References $algo, SimpleSAML_Configuration\getString(), SimpleSAML\Utils\Crypto\loadPrivateKey(), and SimpleSAML\Utils\Crypto\loadPublicKey().
Referenced by sspmod_saml_IdP_SAML2\buildAssertion(), sspmod_saml_IdP_SAML2\buildResponse(), and SAML2\HTTPArtifact\send().
|
static |
Build an authentication request based on information in the metadata.
SimpleSAML_Configuration | $spMetadata | The metadata of the service provider. |
SimpleSAML_Configuration | $idpMetadata | The metadata of the identity provider. |
Definition at line 466 of file Message.php.
References SimpleSAML_Configuration\getArrayizeString(), SimpleSAML_Configuration\getBoolean(), SimpleSAML_Configuration\getInteger(), SimpleSAML_Configuration\getString(), SimpleSAML_Configuration\getValue(), SimpleSAML_Configuration\getValueValidate(), SimpleSAML_Configuration\hasValue(), and SimpleSAML_Configuration\loadFromArray().
Referenced by sspmod_saml_Auth_Source_SP\startSSO2().
|
static |
Build a logout request based on information in the metadata.
SimpleSAML_Configuration | $srcMetadata | The metadata of the sender. |
SimpleSAML_Configuration | $dstMetadata | The metadata of the recipient. |
Definition at line 536 of file Message.php.
References $lr, and SimpleSAML_Configuration\getString().
Referenced by sspmod_saml_IdP_SAML2\buildLogoutRequest(), and sspmod_saml_Auth_Source_SP\startSLO2().
|
static |
Build a logout response based on information in the metadata.
SimpleSAML_Configuration | $srcMetadata | The metadata of the sender. |
SimpleSAML_Configuration | $dstMetadata | The metadata of the recipient. |
Definition at line 556 of file Message.php.
References $lr, and SimpleSAML_Configuration\getString().
Referenced by sspmod_saml_IdP_SAML2\sendLogoutResponse().
|
static |
Check the signature on a SAML2 message or assertion.
SimpleSAML_Configuration | $srcMetadata | The metadata of the sender. |
\SAML2\SignedElement | $element | Either a or a . |
Definition at line 149 of file Message.php.
References $certificates, $i, $key, $keys, $res, SimpleSAML\Logger\debug(), SimpleSAML_Configuration\getArrayizeString(), SimpleSAML_Configuration\getPublicKeys(), SimpleSAML_Configuration\getString(), SimpleSAML_Configuration\hasValue(), and SimpleSAML\Logger\notice().
|
staticprivate |
Decrypt an assertion.
SimpleSAML_Configuration | $srcMetadata | The metadata of the sender (IdP). |
SimpleSAML_Configuration | $dstMetadata | The metadata of the recipient (SP). |
\SAML2\Assertion | \SAML2\EncryptedAssertion | $assertion | The assertion we are decrypting. |
Definition at line 357 of file Message.php.
References $i, $key, $keys, $ret, SimpleSAML\Logger\debug(), and SimpleSAML_Configuration\getBoolean().
|
staticprivate |
Decrypt any encrypted attributes in an assertion.
SimpleSAML_Configuration | $srcMetadata | The metadata of the sender (IdP). |
SimpleSAML_Configuration | $dstMetadata | The metadata of the recipient (SP). |
\SAML2\Assertion | \SAML2\Assertion | $assertion | The assertion containing any possibly encrypted attributes. |
Definition at line 411 of file Message.php.
References $i, $key, $keys, and SimpleSAML\Logger\debug().
|
staticprivate |
Find the certificate used to sign a message or assertion.
An exception is thrown if we are unable to locate the certificate.
array | $certFingerprints | The fingerprints we are looking for. |
array | $certificates | Array of certificates. |
SimpleSAML_Error_Exception | if we cannot find the certificate matching the fingerprint. |
Definition at line 114 of file Message.php.
|
static |
Retrieve blacklisted algorithms.
Remote configuration overrides local configuration.
SimpleSAML_Configuration | $srcMetadata | The metadata of the sender. |
SimpleSAML_Configuration | $dstMetadata | The metadata of the recipient. |
Definition at line 332 of file Message.php.
References SimpleSAML_Configuration\getArray().
|
static |
Retrieve the decryption keys from metadata.
SimpleSAML_Configuration | $srcMetadata | The metadata of the sender (IdP). |
SimpleSAML_Configuration | $dstMetadata | The metadata of the recipient (SP). |
Definition at line 281 of file Message.php.
References $key, $keys, SimpleSAML_Configuration\getString(), and SimpleSAML\Utils\Crypto\loadPrivateKey().
|
static |
Retrieve the encryption key for the given entity.
SimpleSAML_Configuration | $metadata | The metadata of the entity. |
Definition at line 865 of file Message.php.
References $key, $keys, SimpleSAML_Configuration\getPublicKeys(), and SimpleSAML_Configuration\getString().
Referenced by sspmod_saml_IdP_SAML2\buildAssertion(), sspmod_saml_IdP_SAML2\buildLogoutRequest(), and sspmod_saml_Auth_Source_SP\startSLO2().
|
static |
Retrieve the status code of a response as a sspmod_saml_Error.
\SAML2\StatusResponse | $response | The response. |
Definition at line 452 of file Message.php.
Referenced by sspmod_saml_IdP_SAML2\receiveLogoutMessage().
|
staticprivate |
Process an assertion in a response.
SimpleSAML_Configuration | $spMetadata | The metadata of the service provider. |
SimpleSAML_Configuration | $idpMetadata | The metadata of the identity provider. |
\SAML2\Response | $response | The response containing the assertion. |
\SAML2\Assertion | \SAML2\EncryptedAssertion | $assertion | The assertion. |
bool | $responseSigned | Whether the response is signed. |
Definition at line 636 of file Message.php.
References $_SERVER, $attributes, $i, $key, $keys, $name, $sc, $spEntityId, $values, data, SimpleSAML\Logger\debug(), SimpleSAML_Configuration\getBoolean(), SimpleSAML\Utils\HTTP\getSelfURLNoQuery(), SimpleSAML_Configuration\getString(), and info().
|
static |
Process a response message.
If the response is an error response, we will throw a sspmod_saml_Error exception with the error.
SimpleSAML_Configuration | $spMetadata | The metadata of the service provider. |
SimpleSAML_Configuration | $idpMetadata | The metadata of the identity provider. |
\SAML2\Response | $response | The response. |
Definition at line 583 of file Message.php.
References $ret, and SimpleSAML\Utils\HTTP\getSelfURLNoQuery().
|
static |
Check signature on a SAML2 message if enabled.
SimpleSAML_Configuration | $srcMetadata | The metadata of the sender. |
SimpleSAML_Configuration | $dstMetadata | The metadata of the recipient. |
\SAML2\Message | $message | The message we should check the signature on. |
Definition at line 236 of file Message.php.
References SimpleSAML_Configuration\getBoolean().
Referenced by sspmod_saml_IdP_SAML2\receiveAuthnRequest(), and sspmod_saml_IdP_SAML2\receiveLogoutMessage().