Logo Search packages:      
Sourcecode: jenkins-trilead-ssh2 version File versions  Download package

Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes

com::trilead::ssh2::Connection Class Reference

Collaboration diagram for com::trilead::ssh2::Connection:
Collaboration graph
[legend]

List of all members.

Classes

class  PumpThread

Public Member Functions

synchronized void addConnectionMonitor (ConnectionMonitor cmon)
synchronized boolean authenticateWithDSA (String user, String pem, String password) throws IOException
synchronized boolean authenticateWithKeyboardInteractive (String user, InteractiveCallback cb) throws IOException
synchronized boolean authenticateWithKeyboardInteractive (String user, String[] submethods, InteractiveCallback cb) throws IOException
synchronized boolean authenticateWithNone (String user) throws IOException
synchronized boolean authenticateWithPassword (String user, String password) throws IOException
synchronized boolean authenticateWithPublicKey (String user, char[] pemPrivateKey, String password) throws IOException
synchronized boolean authenticateWithPublicKey (String user, File pemFile, String password) throws IOException
synchronized void cancelRemotePortForwarding (int bindPort) throws IOException
synchronized void close ()
synchronized ConnectionInfo connect () throws IOException
synchronized ConnectionInfo connect (ServerHostKeyVerifier verifier) throws IOException
synchronized ConnectionInfo connect (ServerHostKeyVerifier verifier, int connectTimeout, int kexTimeout) throws IOException
 Connection (String hostname, int port)
 Connection (String hostname)
synchronized LocalPortForwarder createLocalPortForwarder (InetSocketAddress addr, String host_to_connect, int port_to_connect) throws IOException
synchronized LocalPortForwarder createLocalPortForwarder (int local_port, String host_to_connect, int port_to_connect) throws IOException
synchronized LocalStreamForwarder createLocalStreamForwarder (String host_to_connect, int port_to_connect) throws IOException
synchronized SCPClient createSCPClient () throws IOException
synchronized void enableDebugging (boolean enable, DebugLogger logger)
int exec (String command, OutputStream output) throws IOException, InterruptedException
synchronized void forceKeyExchange () throws IOException
synchronized ConnectionInfo getConnectionInfo () throws IOException
synchronized String getHostname ()
synchronized int getPort ()
synchronized String[] getRemainingAuthMethods (String user) throws IOException
synchronized boolean isAuthenticationComplete ()
synchronized boolean isAuthenticationPartialSuccess ()
synchronized boolean isAuthMethodAvailable (String user, String method) throws IOException
synchronized Session openSession () throws IOException
synchronized void ping () throws IOException
synchronized void requestRemotePortForwarding (String bindAddress, int bindPort, String targetAddress, int targetPort) throws IOException
synchronized void sendIgnorePacket () throws IOException
synchronized void sendIgnorePacket (byte[] data) throws IOException
synchronized void setClient2ServerCiphers (String[] ciphers)
synchronized void setClient2ServerMACs (String[] macs)
synchronized void setDHGexParameters (DHGexParameters dgp)
synchronized void setProxyData (ProxyData proxyData)
synchronized void setSecureRandom (SecureRandom rnd)
synchronized void setServer2ClientCiphers (String[] ciphers)
synchronized void setServer2ClientMACs (String[] macs)
synchronized void setServerHostKeyAlgorithms (String[] algos)
synchronized void setTCPNoDelay (boolean enable) throws IOException

Static Public Member Functions

static synchronized String[] getAvailableCiphers ()
static synchronized String[] getAvailableMACs ()
static synchronized String[] getAvailableServerHostKeyAlgorithms ()

Static Public Attributes

static final String identification = "TrileadSSH2Java_212"

Private Member Functions

void close (Throwable t, boolean hard)
final SecureRandom getOrCreateSecureRND ()
String[] removeDuplicates (String[] list)

Private Attributes

AuthenticationManager am
boolean authenticated = false
ChannelManager cm
Vector connectionMonitors = new Vector()
CryptoWishList cryptoWishList = new CryptoWishList()
DHGexParameters dhgexpara = new DHGexParameters()
SecureRandom generator
final String hostname
final int port
ProxyData proxyData = null
boolean tcpNoDelay = false
TransportManager tm

Detailed Description

A Connection is used to establish an encrypted TCP/IP connection to a SSH-2 server.

Typically, one

  1. creates a Connection object.
  2. calls the connect() method.
  3. calls some of the authentication methods (e.g., authenticateWithPublicKey()).
  4. calls one or several times the openSession() method.
  5. finally, one must close the connection and release resources with the close() method.
Author:
Christian Plattner, plattner@trilead.com
Version:
Id:
Connection.java,v 1.2 2008/03/03 07:01:36 cplattne Exp

Definition at line 44 of file Connection.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index