Class to represent an OAuth Signature Method. More...
Public Member Functions | |
| get_name () | |
| Needs to return the name of the Signature Method (ie HMAC-SHA1) More... | |
| build_signature ($request, $consumer, $token) | |
| Build up the signature NOTE: The output of this function MUST NOT be urlencoded. More... | |
| check_signature ($request, $consumer, $token, $signature) | |
| Verifies that a given signature is correct. More... | |
Class to represent an OAuth Signature Method.
Definition at line 16 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 | |
| OAuthConsumer | $consumer | |
| OAuthToken | $token |
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 43 of file OAuthSignatureMethod.php.
References OAuthSignatureMethod\build_signature().
|
abstract |
Needs to return the name of the Signature Method (ie HMAC-SHA1)