public function getClaim($name, $default = null)
    {
        if ($this->hasClaim($name)) {
            return $this->claims[$name]->getValue();
        }

        if ($default === null) {
            throw new \OutOfBoundsException('Requested claim is not configured');
        }

        return $default;
    }