com.softicar.platform.common.network.ssh.SshLogin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.network.ssh;
public class SshLogin implements ISshLogin {
private static final int DEFAULT_PORT = 22;
private final String username;
private final String host;
private final int port;
public SshLogin(String username, String host) {
this(username, host, DEFAULT_PORT);
}
public SshLogin(String username, String host, int port) {
this.username = username;
this.host = host;
this.port = port;
}
@Override
public String getSshUser() {
return username;
}
@Override
public String getIpAddress() {
return host;
}
@Override
public Integer getSshPort() {
return port;
}
}