protected function generateHmac($privateKey, $requestedRoute, $data)
    {
        $completeString = $requestedRoute . json_encode($data);

        return hash_hmac('sha256', $completeString, $privateKey);
    }