Lcobucci\JWT\Parser::parseHeader PHP Méthode

parseHeader() protected méthode

Parses the header from a string
protected parseHeader ( string $data ) : array
$data string
Résultat array
    protected function parseHeader(string $data) : array
    {
        $header = (array) $this->decoder->jsonDecode($this->decoder->base64UrlDecode($data));
        if (isset($header['enc'])) {
            throw new InvalidArgumentException('Encryption is not supported yet');
        }
        return $header;
    }