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;
    }
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;
    }
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 ; }
Parses the header from a string

@param string $data

@return array

@throws \InvalidArgumentException When an invalid header is informed
Parses the header from a string