function OAuthSignatureMethod_PLAINTEXT::signature in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.2 lib/oauth-php/library/signature_method/OAuthSignatureMethod_PLAINTEXT.php \OAuthSignatureMethod_PLAINTEXT::signature()
* Calculate the signature using PLAINTEXT * *
Parameters
OAuthRequest request: * @param string base_string * @param string consumer_secret * @param string token_secret * @return string
Overrides OAuthSignatureMethod::signature
1 call to OAuthSignatureMethod_PLAINTEXT::signature()
- OAuthSignatureMethod_PLAINTEXT::verify in lib/
oauth-php/ library/ signature_method/ OAuthSignatureMethod_PLAINTEXT.php - * Check if the request signature corresponds to the one calculated for the request. * *
File
- lib/
oauth-php/ library/ signature_method/ OAuthSignatureMethod_PLAINTEXT.php, line 53
Class
Code
function signature($request, $base_string, $consumer_secret, $token_secret) {
return $request
->urlencode($request
->urlencode($consumer_secret) . '&' . $request
->urlencode($token_secret));
}