class OAuthSignatureMethod_HMAC_SHA1 extends OAuthSignatureMethod


Located at : UKNOWVA_ROOT/components/com_community/libraries/twitter/OAuth.php

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")

Methods

string
get_name()

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

string
build_signature(OAuthRequest $request, OAuthConsumer $consumer, OAuthToken $token)

Build up the signature NOTE: The output of this function MUST NOT be urlencoded.

bool
check_signature(OAuthRequest $request, OAuthConsumer $consumer, OAuthToken $token, string $signature)

Verifies that a given signature is correct

Details

at line 100
string get_name()

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

Return Value

string

at line 104
string build_signature(OAuthRequest $request, OAuthConsumer $consumer, OAuthToken $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

Return Value

string

in OAuthSignatureMethod at line 86
bool check_signature(OAuthRequest $request, OAuthConsumer $consumer, OAuthToken $token, string $signature)

Verifies that a given signature is correct

Parameters

OAuthRequest $request
OAuthConsumer $consumer
OAuthToken $token
string $signature

Return Value

bool