CTL.Comm
Class SSHv2

java.lang.Object
  extended by CTL.Comm.SSHv2
All Implemented Interfaces:
java.lang.Runnable

public class SSHv2
extends java.lang.Object
implements java.lang.Runnable

Wrapper for the jsch SSHv2 API


Field Summary
private  Communicator comm
          Communicator which uses this transport
private  Location loc
          Location of the remote machine
private  java.lang.String start
          Command to invoke
 
Constructor Summary
SSHv2(Location loc, Communicator comm, Env env)
          Initialization
 
Method Summary
static boolean hasPrivateKey()
          Check if the user has a RSA private key for SSH connections
 void run()
          Runs the command specified by the Location on the remote machine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

private java.lang.String start
Command to invoke


loc

private Location loc
Location of the remote machine


comm

private Communicator comm
Communicator which uses this transport

Constructor Detail

SSHv2

public SSHv2(Location loc,
             Communicator comm,
             Env env)
Initialization

Parameters:
loc - Location
Method Detail

hasPrivateKey

public static boolean hasPrivateKey()
Check if the user has a RSA private key for SSH connections

Returns:
True if he does, false otherwise

run

public void run()
Runs the command specified by the Location on the remote machine

Specified by:
run in interface java.lang.Runnable