Campustream 1.0
A social network MQP for WPI
OAuthSignatureMethod_RSA_SHA1 Class Reference
Inheritance diagram for OAuthSignatureMethod_RSA_SHA1:
OAuthSignatureMethod

Public Member Functions

 get_name ()
 build_signature ($request, $consumer, $token)
 check_signature ($request, $consumer, $token, $signature)

Protected Member Functions

 fetch_public_cert (&$request)
 fetch_private_cert (&$request)

Detailed Description

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

Definition at line 161 of file OAuth.php.


Member Function Documentation

build_signature ( request,
consumer,
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
Returns:
string

Reimplemented from OAuthSignatureMethod.

Definition at line 180 of file OAuth.php.

check_signature ( request,
consumer,
token,
signature 
)

Verifies that a given signature is correct

Parameters:
OAuthRequest$request
OAuthConsumer$consumer
OAuthToken$token
string$signature
Returns:
bool

Reimplemented from OAuthSignatureMethod.

Definition at line 199 of file OAuth.php.

fetch_private_cert ( &$  request) [abstract, protected]
fetch_public_cert ( &$  request) [abstract, protected]
get_name ( )

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

Returns:
string

Reimplemented from OAuthSignatureMethod.

Definition at line 162 of file OAuth.php.


The documentation for this class was generated from the following file: