net.ssh.jsch
Class ProxySOCKS5

java.lang.Object
  extended by net.ssh.jsch.ProxySOCKS5
All Implemented Interfaces:
Proxy

public class ProxySOCKS5
extends java.lang.Object
implements Proxy


Constructor Summary
ProxySOCKS5(java.lang.String proxy_host)
           
ProxySOCKS5(java.lang.String proxy_host, int proxy_port)
           
 
Method Summary
 void close()
           
 void connect(Session session, java.lang.String host, int port)
           
static int getDefaultPort()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 void setUserPasswd(java.lang.String user, java.lang.String passwd)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxySOCKS5

public ProxySOCKS5(java.lang.String proxy_host)

ProxySOCKS5

public ProxySOCKS5(java.lang.String proxy_host,
                   int proxy_port)
Method Detail

setUserPasswd

public void setUserPasswd(java.lang.String user,
                          java.lang.String passwd)

connect

public void connect(Session session,
                    java.lang.String host,
                    int port)
             throws JSchException
Specified by:
connect in interface Proxy
Throws:
JSchException

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in interface Proxy

getOutputStream

public java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in interface Proxy

close

public void close()
Specified by:
close in interface Proxy

getDefaultPort

public static int getDefaultPort()