ZenphotoCMS 1.6.5

OAuthSignatureMethod_RSA_SHA1 extends OAuthSignatureMethod
in package

AbstractYes

The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 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-v1_5. 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")

Table of Contents

Methods

build_signature()  : string
Build up the signature NOTE: The output of this function MUST NOT be urlencoded.
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)
fetch_private_cert()  : mixed
fetch_public_cert()  : mixed

Methods

build_signature()

Build up the signature NOTE: The output of this function MUST NOT be urlencoded.

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

the encoding is handled in OAuthRequest when the final request is serialized

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

check_signature()

Verifies that a given signature is correct

public check_signature(mixed $request, mixed $consumer, mixed $token, mixed $signature) : bool
Parameters
$request : mixed
$consumer : mixed
$token : mixed
$signature : mixed
Return values
bool

get_name()

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

public get_name() : string
Return values
string

fetch_private_cert()

protected abstract fetch_private_cert(mixed &$request) : mixed
Parameters
$request : mixed

fetch_public_cert()

protected abstract fetch_public_cert(mixed &$request) : mixed
Parameters
$request : mixed

        
On this page

Search results