Class to represent an OAuth signature method. More...
Public Member Functions | |
get_name () | |
Needs to return the name of the Signature Method (eg HMAC-SHA1). | |
build_signature ($request, $consumer, $token) | |
Build up the signature. | |
check_signature ($request, $consumer, $token, $signature) | |
Verifies that a given signature is correct. | |
Class to represent an OAuth signature method.
Definition at line 17 of file OAuthSignatureMethod.php.
|
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 | Request |
OAuthConsumer | $consumer | Consumer |
OAuthToken | $token | Token |
Reimplemented in OAuthSignatureMethod_HMAC_SHA1, OAuthSignatureMethod_HMAC_SHA224, OAuthSignatureMethod_HMAC_SHA256, OAuthSignatureMethod_HMAC_SHA384, and OAuthSignatureMethod_HMAC_SHA512.
Referenced by OAuthSignatureMethod\check_signature().
check_signature | ( | $request, | |
$consumer, | |||
$token, | |||
$signature | |||
) |
Verifies that a given signature is correct.
OAuthRequest | $request | |
OAuthConsumer | $consumer | |
OAuthToken | $token | |
string | $signature |
Definition at line 52 of file OAuthSignatureMethod.php.
References OAuthSignatureMethod\build_signature().
|
abstract |
Needs to return the name of the Signature Method (eg HMAC-SHA1).
Reimplemented in OAuthSignatureMethod_HMAC_SHA1, OAuthSignatureMethod_HMAC_SHA224, OAuthSignatureMethod_HMAC_SHA256, OAuthSignatureMethod_HMAC_SHA384, and OAuthSignatureMethod_HMAC_SHA512.