LTI Integration Library 4.10.3
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
OAuthSignatureMethod_HMAC_SHA1 Class Reference

Class to represent an OAuth HMAC_SHA1 signature method. More...

Inheritance diagram for OAuthSignatureMethod_HMAC_SHA1:
OAuthSignatureMethod

Public Member Functions

 get_name ()
 Name of the Signature Method.
 
 build_signature ($request, $consumer, $token)
 Build up the signature.
 
- Public Member Functions inherited from OAuthSignatureMethod
 get_name ()
 Needs to return the name of the Signature Method (eg HMAC-SHA1).
 
 build_signature ($request, $consumer, $token)
 Build up the signature.
 
 check_signature ($request, $consumer, $token, $signature)
 Verifies that a given signature is correct.
 

Detailed Description

Class to represent an OAuth HMAC_SHA1 signature method.

Version
2008-08-04
Licence: https://opensource.org/licenses/MIT The MIT License
The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104] where the Signature Base String is the text and the key is the concatenated values (each first encoded per Parameter Encoding) of the Consumer Secret and Token Secret, separated by an '&' character (ASCII code 38) even if empty.
  • Chapter 9.2 ("HMAC-SHA1")

Definition at line 20 of file OAuthSignatureMethod_HMAC_SHA1.php.

Member Function Documentation

◆ build_signature()

build_signature (   $request,
  $consumer,
  $token 
)

Build up the signature.

NOTE: The output of this function MUST NOT be urlencoded. the encoding is handled in OAuthRequest when the final request is serialized

Parameters
OAuthRequest$requestRequest
OAuthConsumer$consumerConsumer
OAuthToken$tokenToken
Returns
string

Reimplemented from OAuthSignatureMethod.

Definition at line 46 of file OAuthSignatureMethod_HMAC_SHA1.php.

References OAuthUtil\urlencode_rfc3986().

◆ get_name()

get_name ( )

Name of the Signature Method.

Returns
string

Reimplemented from OAuthSignatureMethod.

Definition at line 28 of file OAuthSignatureMethod_HMAC_SHA1.php.


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