ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
IMSGlobal\LTI\OAuth\OAuthToken Class Reference

Class to represent an OAuth Token. More...

+ Collaboration diagram for IMSGlobal\LTI\OAuth\OAuthToken:

Public Member Functions

 __construct ($key, $secret)
 key = the token secret = the token secret More...
 
 to_string ()
 generates the basic string serialization of a token that a server would respond to request_token and access_token calls with More...
 
 __toString ()
 

Data Fields

 $key
 
 $secret
 

Detailed Description

Class to represent an OAuth Token.

Version
2008-08-04 https://opensource.org/licenses/MIT The MIT License

Definition at line 12 of file OAuthToken.php.

Constructor & Destructor Documentation

◆ __construct()

IMSGlobal\LTI\OAuth\OAuthToken::__construct (   $key,
  $secret 
)

key = the token secret = the token secret

Definition at line 22 of file OAuthToken.php.

References IMSGlobal\LTI\OAuth\OAuthToken\$key, and IMSGlobal\LTI\OAuth\OAuthToken\$secret.

22  {
23  $this->key = $key;
24  $this->secret = $secret;
25  }

Member Function Documentation

◆ __toString()

IMSGlobal\LTI\OAuth\OAuthToken::__toString ( )

Definition at line 38 of file OAuthToken.php.

References IMSGlobal\LTI\OAuth\OAuthToken\to_string().

38  {
39  return $this->to_string();
40  }
to_string()
generates the basic string serialization of a token that a server would respond to request_token and ...
Definition: OAuthToken.php:31
+ Here is the call graph for this function:

◆ to_string()

IMSGlobal\LTI\OAuth\OAuthToken::to_string ( )

generates the basic string serialization of a token that a server would respond to request_token and access_token calls with

Definition at line 31 of file OAuthToken.php.

References IMSGlobal\LTI\OAuth\OAuthUtil\urlencode_rfc3986().

Referenced by IMSGlobal\LTI\OAuth\OAuthToken\__toString().

31  {
32  return 'oauth_token=' .
33  OAuthUtil::urlencode_rfc3986($this->key) .
34  '&oauth_token_secret=' .
35  OAuthUtil::urlencode_rfc3986($this->secret);
36  }
static urlencode_rfc3986($input)
Definition: OAuthUtil.php:14
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $key

IMSGlobal\LTI\OAuth\OAuthToken::$key

Definition at line 15 of file OAuthToken.php.

Referenced by IMSGlobal\LTI\OAuth\OAuthToken\__construct().

◆ $secret

IMSGlobal\LTI\OAuth\OAuthToken::$secret

Definition at line 16 of file OAuthToken.php.

Referenced by IMSGlobal\LTI\OAuth\OAuthToken\__construct().


The documentation for this class was generated from the following file: