Definition at line 20 of file HTTPArtifact.php.
◆ getRedirectURL()
SAML2\HTTPArtifact::getRedirectURL |
( |
Message |
$message | ) |
|
Create the redirect URL for a message.
- Parameters
-
\SAML2\Message | $message | The message. |
- Returns
- string The URL the user should be redirected to in order to send a message.
- Exceptions
-
Exception
Definition at line 34 of file HTTPArtifact.php.
35 {
36 $store = SimpleSAML_Store::getInstance();
38 throw new \Exception('Unable to send artifact without a datastore configured.');
39 }
40
42 $artifact = base64_encode(
"\x00\x04\x00\x00" . sha1(
$message->getIssuer(),
true) . $generatedId) ;
43 $artifactData =
$message->toUnsignedXML();
44 $artifactDataString = $artifactData->ownerDocument->saveXML($artifactData);
45
47
50 );
54 }
55
57 }
static getTime()
Getter for getting the current timestamp.
static stringToHex($bytes)
static addURLparameter($url, $parameters)
static generateRandomBytes($length)
if(! $oauthconfig->getBoolean('getUserInfo.enable', FALSE)) $store
catch(Exception $e) $message
References $artifact, $message, $params, $relayState, $store, SimpleSAML_Utilities\addURLparameter(), SimpleSAML_Utilities\generateRandomBytes(), getTime(), and SimpleSAML_Utilities\stringToHex().
◆ send()
SAML2\HTTPArtifact::send |
( |
Message |
$message | ) |
|
Send a SAML 2 message using the HTTP-Redirect binding.
Note: This function never returns.
- Parameters
-
\SAML2\Message | $message | The message we should send. |
Reimplemented from SAML2\Binding.
Definition at line 66 of file HTTPArtifact.php.
67 {
70 }
$destination
The destination of messages.
getRedirectURL(Message $message)
Create the redirect URL for a message.
References $destination, and $message.
◆ setSPMetadata()
- Parameters
-
\SimpleSAML_Configuration | $sp | |
Definition at line 154 of file HTTPArtifact.php.
155 {
156 $this->spMetadata = $sp;
157 }
◆ validateSignature()
A validator which returns true if the ArtifactResponse was signed with the given key.
- Parameters
-
\SAML2\ArtifactResponse | $message | |
XMLSecurityKey | $key | |
- Returns
- bool
Definition at line 166 of file HTTPArtifact.php.
References $key, and $message.
◆ $spMetadata
SAML2\HTTPArtifact::$spMetadata |
|
private |
The documentation for this class was generated from the following file: