Lcobucci\JWT\Parser::parseHeader PHP Метод

parseHeader() защищенный Метод

Parses the header from a string
protected parseHeader ( string $data ) : array
$data string
Результат 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;
    }