You are here

public function sOAuthSignatureMethod::check_signature in jQuery social stream 7.2

Same name and namespace in other branches
  1. 7 jquery_social_stream.js.inc \sOAuthSignatureMethod::check_signature()

Verifies that a given signature is correct

Parameters

sOAuthRequest $request:

sOAuthConsumer $consumer:

sOAuthToken $token:

string $signature:

Return value

bool

1 method overrides sOAuthSignatureMethod::check_signature()
sOAuthSignatureMethod_RSA_SHA1::check_signature in ./jquery_social_stream.js.inc
Verifies that a given signature is correct

File

./jquery_social_stream.js.inc, line 541
JS callbacks.

Class

sOAuthSignatureMethod
A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec

Code

public function check_signature($request, $consumer, $token, $signature) {
  $built = $this
    ->build_signature($request, $consumer, $token);
  return $built == $signature;
}