com.mindbright.ssh
Class SSHClientUserAdaptor

java.lang.Object
  extended by com.mindbright.ssh.SSHClientUserAdaptor
All Implemented Interfaces:
SSHClientUser
Direct Known Subclasses:
SSHConsoleClient

public class SSHClientUserAdaptor
extends java.lang.Object
implements SSHClientUser


Field Summary
protected  SSHInteractor interactor
           
protected  java.lang.String sshHost
           
protected  int sshPort
           
 
Constructor Summary
SSHClientUserAdaptor(java.lang.String server)
           
SSHClientUserAdaptor(java.lang.String server, int port)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sshHost

protected java.lang.String sshHost

sshPort

protected int sshPort

interactor

protected SSHInteractor interactor
Constructor Detail

SSHClientUserAdaptor

public SSHClientUserAdaptor(java.lang.String server,
                            int port)

SSHClientUserAdaptor

public SSHClientUserAdaptor(java.lang.String server)
Method Detail

getSrvHost

public java.lang.String getSrvHost()
Description copied from interface: SSHClientUser
Get host to connect to

Specified by:
getSrvHost in interface SSHClientUser

getSrvPort

public int getSrvPort()
Description copied from interface: SSHClientUser
Get port number to connect to

Specified by:
getSrvPort in interface SSHClientUser

getProxyConnection

public NetworkConnection getProxyConnection()
                                     throws java.io.IOException
Description copied from interface: SSHClientUser
Return a connection to the server. This can be used to connect through proxies etc.

Specified by:
getProxyConnection in interface SSHClientUser
Throws:
java.io.IOException

getDisplay

public java.lang.String getDisplay()
Description copied from interface: SSHClientUser
Get the display for X11 forwardings

Specified by:
getDisplay in interface SSHClientUser

getMaxPacketSz

public int getMaxPacketSz()
Description copied from interface: SSHClientUser
get maximum packet size (0 = no limit)

Specified by:
getMaxPacketSz in interface SSHClientUser

getAliveInterval

public int getAliveInterval()
Description copied from interface: SSHClientUser
Get alive interval (0 = do not send keepalive packets)

Specified by:
getAliveInterval in interface SSHClientUser

getCompressionLevel

public int getCompressionLevel()
Description copied from interface: SSHClientUser
Get desired level of compression

Specified by:
getCompressionLevel in interface SSHClientUser

getConnectTimeout

public int getConnectTimeout()
Description copied from interface: SSHClientUser
Timeout when connecting to server (in seconds)

Specified by:
getConnectTimeout in interface SSHClientUser

getHelloTimeout

public int getHelloTimeout()
Description copied from interface: SSHClientUser
Timeout when waiting for initial greeting from server (in seconds)

Specified by:
getHelloTimeout in interface SSHClientUser

getKexTimeout

public int getKexTimeout()
Description copied from interface: SSHClientUser
Timeout of key exchange (in seconds)

Specified by:
getKexTimeout in interface SSHClientUser

wantX11Forward

public boolean wantX11Forward()
Description copied from interface: SSHClientUser
Return true if X11 forwarding is desired

Specified by:
wantX11Forward in interface SSHClientUser

wantPTY

public boolean wantPTY()
Description copied from interface: SSHClientUser
Return true if we need a PTY on the server

Specified by:
wantPTY in interface SSHClientUser

getInteractor

public SSHInteractor getInteractor()
Description copied from interface: SSHClientUser
Get interactor which should handle the authentication phase

Specified by:
getInteractor in interface SSHClientUser