ZenphotoCMS 1.6.2

OAuthSignatureMethod_PLAINTEXT extends OAuthSignatureMethod
in package

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

Table of Contents

Methods

build_signature()  : string
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.
check_signature()  : bool
Verifies that a given signature is correct
get_name()  : string
Needs to return the name of the Signature Method (ie HMAC-SHA1)

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.

public build_signature(mixed $request, mixed $consumer, mixed $token) : string
  • Chapter 9.4.1 ("Generating Signatures")

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

Parameters
$request : mixed
$consumer : mixed
$token : mixed
Return values
string

get_name()

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

public get_name() : string
Return values
string

        
On this page

Search results