28 $base_string =
$request->get_signature_base_string();
29 $request->base_string = $base_string;
37 $key = implode(
'&', $key_parts);
39 return base64_encode(hash_hmac(
'sha256', $base_string,
$key,
true));
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
Class to represent an OAuth HMAC_SHA256 signature method.
build_signature($request, $consumer, $token)
Build up the signature NOTE: The output of this function MUST NOT be urlencoded.
get_name()
Needs to return the name of the Signature Method (ie HMAC-SHA1)
Class to represent an OAuth Signature Method.
static urlencode_rfc3986($input)