@Override
    public JsonWebKeySet store(final JsonWebKeySet jsonWebKeySet) {
        val rest = oidcProperties.getJwks().getRest();
        val headers = CollectionUtils.<String, String>wrap(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE);
        headers.putAll(rest.getHeaders());
        val exec = HttpExecutionRequest.builder()
            .basicAuthPassword(rest.getBasicAuthPassword())
            .basicAuthUsername(rest.getBasicAuthUsername())
            .method(HttpMethod.POST)
            .url(rest.getUrl())
            .headers(headers)
            .entity(jsonWebKeySet.toJson(JsonWebKey.OutputControlLevel.INCLUDE_PRIVATE))
            .build();
        val response = HttpUtils.execute(exec);
        FunctionUtils.doIfNotNull(response,
            httpResponse -> LOGGER.debug("Storing JWKS resource via [{}] returned [{}]",
                rest.getUrl(), response.getReasonPhrase()));
        return jsonWebKeySet;
    }
This is {@link OidcRestfulJsonWebKeystoreGeneratorService}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/jwks/generator/OidcRestfulJsonWebKeystoreGeneratorService.java