public function extract(HttpMessageInterface $httpMessage, $privateKey)
    {
        $httpMessage->getBody()->rewind();
        $message = $httpMessage->getBody()->getContents();

        $message = (new Cryptography())->decrypt(base64_decode($message), $privateKey);

        return $this->getMessageExtractor()->extract(\json_decode($message, true));
    }