public static JsonWebKey newJsonWebKey(final int size) {
        return Unchecked.supplier(() -> RsaJwkGenerator.generateJwk(size, null, RandomUtils.getNativeInstance())).get();
    }
New Json web key.

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