class OAuthSignatureMethod


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

A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec

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 64
abstract string get_name()

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

Return Value

string

at line 76
abstract 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

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