@Override
    public JWKSet toJWKSet() throws Exception {
        val jwk = JWK.parse(jsonWebKey.toJson(JsonWebKey.OutputControlLevel.INCLUDE_PRIVATE));
        return new JWKSet(jwk.toPublicJWK());
    }
This is {@link OidcFederationDefaultJsonWebKeystoreService}.

@author Misagh Moayyed
@since 7.3.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/federation/OidcFederationDefaultJsonWebKeystoreService.java