protected function parseSignature(array $header, string $data) { if ($data === '' || !isset($header['alg']) || $header['alg'] === 'none') { return null; } $hash = $this->decoder->base64UrlDecode($data); return new Signature($hash); }