public static Key generateJsonWebKey(final Map<String, Object> params) {
        return Unchecked.supplier(() -> {
            val jwk = JsonWebKey.Factory.newJwk(params);
            return jwk.getKey();
        }).get();
    }
Generate json web key.

@param params the params
@return the key
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java