You are here

function LingotekOAuthSignatureMethod_PLAINTEXT::signature in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/signature_method/LingotekOAuthSignatureMethod_PLAINTEXT.php \LingotekOAuthSignatureMethod_PLAINTEXT::signature()
  2. 7.4 lib/oauth-php/library/signature_method/LingotekOAuthSignatureMethod_PLAINTEXT.php \LingotekOAuthSignatureMethod_PLAINTEXT::signature()
  3. 7.5 lib/oauth-php/library/signature_method/LingotekOAuthSignatureMethod_PLAINTEXT.php \LingotekOAuthSignatureMethod_PLAINTEXT::signature()

* Calculate the signature using PLAINTEXT * *

Parameters

LingotekOAuthRequest request: * @param string base_string * @param string consumer_secret * @param string token_secret * @return string

Overrides LingotekOAuthSignatureMethod::signature

1 call to LingotekOAuthSignatureMethod_PLAINTEXT::signature()
LingotekOAuthSignatureMethod_PLAINTEXT::verify in lib/oauth-php/library/signature_method/LingotekOAuthSignatureMethod_PLAINTEXT.php
* Check if the request signature corresponds to the one calculated for the request. * *

File

lib/oauth-php/library/signature_method/LingotekOAuthSignatureMethod_PLAINTEXT.php, line 53

Class

LingotekOAuthSignatureMethod_PLAINTEXT

Code

function signature($request, $base_string, $consumer_secret, $token_secret) {
  return $request
    ->urlencode($request
    ->urlencode($consumer_secret) . '&' . $request
    ->urlencode($token_secret));
}