Skip to content

class Twitter_OAuthSignatureMethod_PLAINTEXT

Oliver edited this page Apr 25, 2020 · 1 revision

www/includes/twitter-php/OAuth.php


Twitter_OAuthSignatureMethod_PLAINTEXT

  • Chapter 9.4 ("PLAINTEXT")

Package

Default

Overview

Public Properties

No public properties found

Constants

No constants found

Public Methods

build_signature() | check_signature() | get_name() |

Methods

build_signature()

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!

public build_signature(mixed $request, mixed $consumer, mixed $token) : string

check_signature()

Verifies that a given signature is correct

public check_signature(\Twitter_OAuthRequest $request, \Twitter_OAuthConsumer $consumer, \Twitter_OAuthToken $token, string $signature) : bool

get_name()

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

public get_name() : string


\ » Classes » Twitter_OAuthSignatureMethod_PLAINTEXT

Clone this wiki locally