Campustream 1.0
A social network MQP for WPI
OAuthSignatureMethod_HMAC_SHA1 Class Reference
Inheritance diagram for OAuthSignatureMethod_HMAC_SHA1:
OAuthSignatureMethod

Public Member Functions

 get_name ()
 build_signature ($request, $consumer, $token)

Detailed Description

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 99 of file OAuth.php.


Member Function Documentation

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$request
OAuthConsumer$consumer
OAuthToken$token
Returns:
string

Reimplemented from OAuthSignatureMethod.

Definition at line 104 of file OAuth.php.

get_name ( )

Needs to return the name of the Signature Method (ie HMAC-SHA1)

Returns:
string

Reimplemented from OAuthSignatureMethod.

Definition at line 100 of file OAuth.php.


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