protected String buildJwtResponse(final RegisteredService registeredService,
                                      final Map<String, String> parameters) {
        val ctx = configurationContext.getObject();
        val oidcService = Objects.requireNonNull((OidcRegisteredService) registeredService);
        val claimsBuilder = new JWTClaimsSet.Builder()
            .issuer(ctx.getIssuerService().determineIssuer(Optional.of(oidcService)))
            .expirationTime(getExpirationDate())
            .audience(oidcService.getClientId());
        parameters.forEach(claimsBuilder::claim);
        val claimSet = claimsBuilder.build();
        LOGGER.debug("Generating JWT response based on claims [{}]", claimSet.toString());
        return ctx.getResponseModeJwtBuilder().build(registeredService, claimSet);
    }
This is {@link BaseOAuth20JwtResponseModeBuilder}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/response/BaseOAuth20JwtResponseModeBuilder.java