public class SshjClientConnection extends java.lang.Object implements SshAbstractTool.SshAction<net.schmizz.sshj.SSHClient>
Modifier and Type | Class and Description |
---|---|
static class |
SshjClientConnection.Builder |
Modifier and Type | Method and Description |
---|---|
static SshjClientConnection.Builder |
builder() |
void |
clear() |
net.schmizz.sshj.SSHClient |
create() |
boolean |
equals(java.lang.Object o) |
int |
getConnectTimeout() |
com.google.common.net.HostAndPort |
getHostAndPort() |
int |
getSessionTimeout() |
net.schmizz.sshj.SSHClient |
getSSHClient() |
java.lang.String |
getUsername() |
int |
hashCode() |
boolean |
isAuthenticated() |
boolean |
isConnected() |
java.lang.String |
toString() |
public static SshjClientConnection.Builder builder()
public boolean isConnected()
public boolean isAuthenticated()
public void clear()
clear
in interface SshAbstractTool.SshAction<net.schmizz.sshj.SSHClient>
public net.schmizz.sshj.SSHClient create() throws java.lang.Exception
create
in interface SshAbstractTool.SshAction<net.schmizz.sshj.SSHClient>
java.lang.Exception
public com.google.common.net.HostAndPort getHostAndPort()
22
public java.lang.String getUsername()
public int getConnectTimeout()
public int getSessionTimeout()
0
for indefinitelypublic net.schmizz.sshj.SSHClient getSSHClient()
null
if not connectedpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object