class OAuthSignatureMethod_PLAINTEXT extends OAuthSignatureMethod


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

The PLAINTEXT method does not provide any security protection and SHOULD only be used over a secure channel such as HTTPS. It does not use the Signature Base String.

  • Chapter 9.4 ("PLAINTEXT")

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)

oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a '&' character (ASCII code 38), even if either secret is empty. The result MUST be encoded again.

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

Verifies that a given signature is correct

Details

at line 126
string get_name()

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

Return Value

string

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

oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a '&' character (ASCII code 38), even if either secret is empty. The result MUST be encoded again.

  • Chapter 9.4.1 ("Generating Signatures")

Please note that the second encoding MUST NOT happen in the SignatureMethod, as OAuthRequest handles this!

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