LTI Integration Library 5.2.0
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
ceLTIc\LTI\OAuth\OAuthToken Class Reference

Class to represent an OAuth token. More...

Public Member Functions

 __construct (string $key, string $secret)
 Class constructor.
 
 to_string ()
 Generates the basic string serialization of a token that a server would respond to request_token and access_token calls with.
 
 __toString ()
 Convert object to a string.
 

Public Attributes

string $key
 Name.
 
string $secret
 Secret.
 

Detailed Description

Class to represent an OAuth token.

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

Constructor & Destructor Documentation

◆ __construct()

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

Class constructor.

Parameters
string$keyThe token
string$secretThe token secret

Member Function Documentation

◆ __toString()

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

Convert object to a string.

Returns
string

◆ to_string()

ceLTIc\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.

Returns
string

Member Data Documentation

◆ $key

string ceLTIc\LTI\OAuth\OAuthToken::$key

Name.

◆ $secret

string ceLTIc\LTI\OAuth\OAuthToken::$secret

Secret.