de.mud.ssh
Class SshIO

java.lang.Object
  |
  +--de.mud.ssh.SshIO

public abstract class SshIO
extends java.lang.Object

Secure Shell IO

Version:
$Id: SshIO.java,v 1.28 2002/10/26 19:52:44 marcus Exp $
Author:
Marcus Meissner

Field Summary
 java.lang.String dataToSend
           
 java.lang.String hashHostKey
           
 
Constructor Summary
SshIO()
          Initialise SshIO
 
Method Summary
 void disconnect()
           
abstract  java.lang.String getTerminalType()
           
 byte[] handleSSH(byte[] buff)
          Read data from the remote host.
 void sendData(java.lang.String str)
           
 void setLogin(java.lang.String user)
           
 void setPassword(java.lang.String password)
           
protected abstract  void write(byte[] buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataToSend

public java.lang.String dataToSend

hashHostKey

public java.lang.String hashHostKey
Constructor Detail

SshIO

public SshIO()
Initialise SshIO

Method Detail

setLogin

public void setLogin(java.lang.String user)

setPassword

public void setPassword(java.lang.String password)

write

protected abstract void write(byte[] buf)
                       throws java.io.IOException
java.io.IOException

getTerminalType

public abstract java.lang.String getTerminalType()

disconnect

public void disconnect()

sendData

public void sendData(java.lang.String str)
              throws java.io.IOException
java.io.IOException

handleSSH

public byte[] handleSSH(byte[] buff)
                 throws java.io.IOException
Read data from the remote host. Blocks until data is available. Returns an array of bytes that will be displayed.

java.io.IOException