static JsonWebKeySet toJsonWebKeyStore(final Resource resource) throws Exception {
        try (val is = resource.getInputStream()) {
            val result = IOUtils.toString(is, StandardCharsets.UTF_8);
            return new JsonWebKeySet(result);
        }
    }
To json web key store.

@param resource the resource
@return the json web key set
@throws Exception the exception
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/jwks/generator/OidcJsonWebKeystoreGeneratorService.java