@Override
    public OidcIdToken generate(final IdTokenGenerationContext context) throws Throwable {
        val timeoutInSeconds = Beans.newDuration(getConfigurationContext().getCasProperties()
            .getAuthn().getOauth().getUma().getRequestingPartyToken().getMaxTimeToLiveInSeconds()).toSeconds();
        LOGGER.debug("Attempting to produce claims for the RPT access token [{}]", context.getAccessToken());
        val claims = buildJwtClaims(context.getAccessToken(), timeoutInSeconds,
            context.getUserProfile(), context.getRegisteredService(), context.getResponseType());
        val finalToken = encodeAndFinalizeToken(claims, context);
        return new OidcIdToken(finalToken, claims, null);
    }
This is {@link UmaIdTokenGeneratorService}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/ticket/rpt/UmaIdTokenGeneratorService.java