com.mindbright.ssh
public class SSHClientUserAdaptor extends java.lang.Object implements SSHClientUser
Modifier and Type | Field and Description |
---|---|
protected SSHInteractor |
interactor |
protected java.lang.String |
sshHost |
protected int |
sshPort |
Constructor and Description |
---|
SSHClientUserAdaptor(java.lang.String server) |
SSHClientUserAdaptor(java.lang.String server,
int port) |
Modifier and Type | Method and Description |
---|---|
int |
getAliveInterval()
Get alive interval (0 = do not send keepalive packets)
|
int |
getCompressionLevel()
Get desired level of compression
|
int |
getConnectTimeout()
Timeout when connecting to server (in seconds)
|
java.lang.String |
getDisplay()
Get the display for X11 forwardings
|
int |
getHelloTimeout()
Timeout when waiting for initial greeting from server (in seconds)
|
SSHInteractor |
getInteractor()
Get interactor which should handle the authentication phase
|
int |
getKexTimeout()
Timeout of key exchange (in seconds)
|
int |
getMaxPacketSz()
get maximum packet size (0 = no limit)
|
NetworkConnection |
getProxyConnection()
Return a connection to the server.
|
java.lang.String |
getSrvHost()
Get host to connect to
|
int |
getSrvPort()
Get port number to connect to
|
boolean |
wantPTY()
Return true if we need a PTY on the server
|
boolean |
wantX11Forward()
Return true if X11 forwarding is desired
|
protected java.lang.String sshHost
protected int sshPort
protected SSHInteractor interactor
public SSHClientUserAdaptor(java.lang.String server, int port)
public SSHClientUserAdaptor(java.lang.String server)
public java.lang.String getSrvHost()
SSHClientUser
getSrvHost
in interface SSHClientUser
public int getSrvPort()
SSHClientUser
getSrvPort
in interface SSHClientUser
public NetworkConnection getProxyConnection() throws java.io.IOException
SSHClientUser
getProxyConnection
in interface SSHClientUser
java.io.IOException
public java.lang.String getDisplay()
SSHClientUser
getDisplay
in interface SSHClientUser
public int getMaxPacketSz()
SSHClientUser
getMaxPacketSz
in interface SSHClientUser
public int getAliveInterval()
SSHClientUser
getAliveInterval
in interface SSHClientUser
public int getCompressionLevel()
SSHClientUser
getCompressionLevel
in interface SSHClientUser
public int getConnectTimeout()
SSHClientUser
getConnectTimeout
in interface SSHClientUser
public int getHelloTimeout()
SSHClientUser
getHelloTimeout
in interface SSHClientUser
public int getKexTimeout()
SSHClientUser
getKexTimeout
in interface SSHClientUser
public boolean wantX11Forward()
SSHClientUser
wantX11Forward
in interface SSHClientUser
public boolean wantPTY()
SSHClientUser
wantPTY
in interface SSHClientUser
public SSHInteractor getInteractor()
SSHClientUser
getInteractor
in interface SSHClientUser