protected function parseHeader($data)
    {
        $header = (array) $this->deserializer->fromJSON($this->deserializer->fromBase64URL($data));

        if (isset($header['enc'])) {
            throw new \InvalidArgumentException('Encryption is not supported yet');
        }

        return $header;
    }