use of io.vertx.ext.shell.term.SSHTermOptions in project vertx-examples by vert-x3.
the class RunShell method start.
@Override
public void start(Promise<Void> startPromise) throws Exception {
ShellService service = ShellService.create(vertx, new ShellServiceOptions().setSSHOptions(new SSHTermOptions().setHost("localhost").setPort(3000).setKeyPairOptions(new JksOptions().setPath("keystore.jks").setPassword("wibble")).setAuthOptions(new ShiroAuthOptions().setConfig(new JsonObject().put("properties_path", "auth.properties")))));
service.start(startPromise);
}
use of io.vertx.ext.shell.term.SSHTermOptions in project vertx-examples by vert-x3.
the class RunShell method start.
@Override
public void start(Future<Void> startFuture) throws Exception {
ShellService service = ShellService.create(vertx, new ShellServiceOptions().setSSHOptions(new SSHTermOptions().setHost("localhost").setPort(3000).setKeyPairOptions(new JksOptions().setPath("keystore.jks").setPassword("wibble")).setAuthOptions(new ShiroAuthOptions().setConfig(new JsonObject().put("properties_path", "auth.properties")))));
service.start(ar -> {
if (ar.succeeded()) {
startFuture.succeeded();
} else {
startFuture.fail(ar.cause());
}
});
}
Aggregations