@Override
    public Resource generate() throws Exception {
        return find()
            .orElseGet(Unchecked.supplier(() -> {
                val jsonWebKeySet = OidcJsonWebKeystoreGeneratorService.generateJsonWebKeySet(oidcProperties);
                return OidcJsonWebKeystoreGeneratorService.toResource(store(jsonWebKeySet));
            }));
    }
This is {@link OidcMongoDbJsonWebKeystoreGeneratorService}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-oidc-mongo/src/main/java/org/apereo/cas/oidc/jwks/generator/mongo/OidcMongoDbJsonWebKeystoreGeneratorService.java