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
-
Definition at line 34 of file HTTPArtifact.php.
References $artifact, $params, $relayState, $store, SimpleSAML_Utilities\addURLparameter(), array, SimpleSAML_Utilities\generateRandomBytes(), SAML2\Message\getDestination(), SAML2\Message\getIssuer(), SAML2\Message\getRelayState(), SimpleSAML_Utilities\stringToHex(), and SAML2\Message\toUnsignedXML().
36 $store = SimpleSAML_Store::getInstance();
38 throw new \Exception(
'Unable to send artifact without a datastore configured.');
42 $artifact = base64_encode(
"\x00\x04\x00\x00" . sha1(
$message->getIssuer(),
true) . $generatedId) ;
43 $artifactData =
$message->toUnsignedXML();
44 $artifactDataString = $artifactData->ownerDocument->saveXML($artifactData);
if(! $oauthconfig->getBoolean('getUserInfo.enable', FALSE)) $store
static getTime()
Getter for getting the current timestamp.
catch(Exception $e) $message
static generateRandomBytes($length)
Create styles array
The data for the language used.
static stringToHex($bytes)
static addURLparameter($url, $parameters)
◆ send()
SAML2\HTTPArtifact::send |
( |
Message |
$message | ) |
|
◆ setSPMetadata()
- Parameters
-
\SimpleSAML_Configuration | $sp | |
Definition at line 154 of file HTTPArtifact.php.
156 $this->spMetadata = $sp;
◆ validateSignature()
◆ $spMetadata
SAML2\HTTPArtifact::$spMetadata |
|
private |
The documentation for this class was generated from the following file: