51 if (strlen($built) == 0 || strlen($signature) == 0) {
55 if (strlen($built) != strlen($signature)) {
61 for ($i = 0; $i < strlen($signature); $i++) {
62 $result |= ord($built{$i}) ^ ord($signature{$i});
Class to represent an OAuth Signature Method.
build_signature($request, $consumer, $token)
Build up the signature NOTE: The output of this function MUST NOT be urlencoded.
check_signature($request, $consumer, $token, $signature)
Verifies that a given signature is correct.
get_name()
Needs to return the name of the Signature Method (ie HMAC-SHA1)