
Public Member Functions | |
| getName () | |
| buildSignature ($request, $consumer, $token) | |
| checkSignature ($request, $consumer, $token, $signature) | |
A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec
| OAuthSignatureMethod::buildSignature | ( | $ | 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 OAuthSignatureMethodRsaSha1, OAuthSignatureMethodPlainText, and OAuthSignatureMethodHmacSha1.
| OAuthSignatureMethod::checkSignature | ( | $ | request, |
| $ | consumer, | ||
| $ | token, | ||
| $ | signature | ||
| ) |
Verifies that a given signature is correct.
| OAuthRequest | $request | |
| OAuthConsumer | $consumer | |
| OAuthToken | $token | |
| string | $signature |
Reimplemented in OAuthSignatureMethodRsaSha1.
| OAuthSignatureMethod::getName | ( | ) | [abstract] |
Needs to return the name of the Signature Method (ie HMAC-SHA1)
Reimplemented in OAuthSignatureMethodHmacSha1, OAuthSignatureMethodRsaSha1, and OAuthSignatureMethodPlainText.