test/jdk/javax/management/remote/rest/RunRestAdapter.java
branchjmx-rest-api
changeset 55995 a798bdd52997
parent 55994 9721e36abeb0
child 55998 54779691e11f
equal deleted inserted replaced
55994:9721e36abeb0 55995:a798bdd52997
    66 
    66 
    67     private void setupMgmtConfig(String fileName) throws IOException {
    67     private void setupMgmtConfig(String fileName) throws IOException {
    68         Properties props = new Properties();
    68         Properties props = new Properties();
    69         props.setProperty("com.sun.management.jmxremote.ssl", "true");
    69         props.setProperty("com.sun.management.jmxremote.ssl", "true");
    70         props.setProperty("com.sun.management.jmxremote.ssl.config.file", sslAgentConfig);
    70         props.setProperty("com.sun.management.jmxremote.ssl.config.file", sslAgentConfig);
    71         props.setProperty("com.sun.management.jmxremote.authenticate", "false");
    71         props.setProperty("com.sun.management.jmxremote.authenticate", "true");
    72         props.setProperty("com.sun.management.jmxremote.rest.port", "8686");
    72         props.setProperty("com.sun.management.jmxremote.rest.port", "8686");
    73 
    73 
    74         try (BufferedWriter writer = new BufferedWriter(new FileWriter(fileName))) {
    74         try (BufferedWriter writer = new BufferedWriter(new FileWriter(fileName))) {
    75             props.store(writer, "");
    75             props.store(writer, "");
    76         }
    76         }