public function verify($signature, $baseString, $key)
    {
        $expectedSignature = $this->generateSignature($baseString, $key);
        if (empty($signature) || empty($expectedSignature)) {
            return false;
        }

        return (strcmp($expectedSignature, $signature) === 0);
    }
public function verify($signature, $baseString, $key)
    {
        $expectedSignature = $this->generateSignature($baseString, $key);
        if (empty($signature) || empty($expectedSignature)) {
            return false;
        }

        return (strcmp($expectedSignature, $signature) === 0);
    }
public function verify ( $ signature , $ baseString , $ key ) { $ expectedSignature = $ this -> generateSignature ( $ baseString , $ key ) ; if ( empty ( $ signature ) || empty ( $ expectedSignature ) ) { return false ; } return ( strcmp ( $ expectedSignature , $ signature ) === 0 ) ; }
Verifies given OAuth request.
@param string $signature signature to be verified.
@param string $baseString signature base string.
@param string $key signature key.
@return bool success.
Verifies given OAuth request .