JsonWebKeySet buildJsonWebKeySet(final Resource resource, final OidcJsonWebKeyCacheKey cacheKey) throws Throwable {
        val jsonWebKeySet = OidcJsonWebKeystoreGeneratorService.toJsonWebKeyStore(resource);
        return getJsonWebKeysFromJwks(jsonWebKeySet, cacheKey);
    }
Build json web key set.

@param resource the resource
@param cacheKey the cache key
@return the json web key set
@throws Throwable the exception
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/jwks/OidcDefaultJsonWebKeystoreCacheLoader.java