class OAuthSignatureMethod_RSA_SHA1 extends OAuthSignatureMethod


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

The RSA-SHA1 signature method uses the RSASSA-PKCS1-v15 signature algorithm as defined in [RFC3447] section 8.2 (more simply known as PKCS#1), using SHA-1 as the hash function for EMSA-PKCS1-v15. It is assumed that the Consumer has provided its RSA public key in a verified way to the Service Provider, in a manner which is beyond the scope of this specification.

  • Chapter 9.3 ("RSA-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 162
string get_name()

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

Return Value

string

at line 180
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 199
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