de.mud.ssh

Class SshIO


public abstract class SshIO
extends java.lang.Object

Secure Shell IO
Version:
$Id: SshIO.java 506 2005-10-25 10:07:21Z marcus $
Author:
Marcus Meissner

Field Summary

String
dataToSend
String
hashHostKey

Constructor Summary

SshIO()
Initialise SshIO

Method Summary

void
disconnect()
abstract String
getTerminalType()
byte[]
handleSSH(buff[] )
Read data from the remote host.
void
sendData(String str)
void
setLogin(String user)
void
setPassword(String password)
void
setWindowSize(int columns, int rows)
protected abstract void
write(byte[] buf)

Field Details

dataToSend

public String dataToSend

hashHostKey

public String hashHostKey

Constructor Details

SshIO

public SshIO()
Initialise SshIO

Method Details

disconnect

public void disconnect()

getTerminalType

public abstract String getTerminalType()

handleSSH

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

sendData

public void sendData(String str)
            throws IOException

setLogin

public void setLogin(String user)

setPassword

public void setPassword(String password)

setWindowSize

public void setWindowSize(int columns,
                          int rows)
            throws IOException

write

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