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

Public Member Functions

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

Detailed Description

A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec

Definition at line 59 of file OAuth.php.


Member Function Documentation

build_signature ( request,
consumer,
token 
) [abstract]

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 in OAuthSignatureMethod_HMAC_SHA1, OAuthSignatureMethod_PLAINTEXT, and OAuthSignatureMethod_RSA_SHA1.

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 in OAuthSignatureMethod_RSA_SHA1.

Definition at line 86 of file OAuth.php.

get_name ( ) [abstract]

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

Returns:
string

Reimplemented in OAuthSignatureMethod_HMAC_SHA1, OAuthSignatureMethod_PLAINTEXT, and OAuthSignatureMethod_RSA_SHA1.


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