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

        foreach ($claims as $name => &$value) {
            $value = $this->claimFactory->create($name, $value);
        }

        return $claims;
    }