public function validateRequest(Request $request, ParamGroup $params)
    {
        $key   = $this->getQParamKey();
        $query = $request->getQueryParams();

        if (!isset($query[$key])) {
            throw InvalidSignatureException::missingSignature();
        }

        if (0 !== strcmp($query[$key], $this->createSignature($request->getUri()->getPath(), $params))) {
            throw InvalidSignatureException::invalidSignature();
        }

        return true;
    }
public function validateRequest(Request $request, ParamGroup $params)
    {
        $key   = $this->getQParamKey();
        $query = $request->getQueryParams();

        if (!isset($query[$key])) {
            throw InvalidSignatureException::missingSignature();
        }

        if (0 !== strcmp($query[$key], $this->createSignature($request->getUri()->getPath(), $params))) {
            throw InvalidSignatureException::invalidSignature();
        }

        return true;
    }
{@inheritdoc}