Campustream 1.0
A social network MQP for WPI
|
Public Member Functions | |
get_name () | |
build_signature ($request, $consumer, $token) | |
check_signature ($request, $consumer, $token, $signature) |
A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec
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
OAuthRequest | $request | |
OAuthConsumer | $consumer | |
OAuthToken | $token |
Reimplemented in OAuthSignatureMethod_HMAC_SHA1, OAuthSignatureMethod_PLAINTEXT, and OAuthSignatureMethod_RSA_SHA1.
check_signature | ( | $ | request, |
$ | consumer, | ||
$ | token, | ||
$ | signature | ||
) |
Verifies that a given signature is correct
OAuthRequest | $request | |
OAuthConsumer | $consumer | |
OAuthToken | $token | |
string | $signature |
Reimplemented in OAuthSignatureMethod_RSA_SHA1.
get_name | ( | ) | [abstract] |
Needs to return the name of the Signature Method (ie HMAC-SHA1)
Reimplemented in OAuthSignatureMethod_HMAC_SHA1, OAuthSignatureMethod_PLAINTEXT, and OAuthSignatureMethod_RSA_SHA1.