de.mud.jta.plugin
Class SSH
- FilterPlugin, VisualPlugin
Secure Shell plugin for the JTA. This is a plugin
to be used instead of Telnet for secure remote terminal sessions over
insecure networks.
Take a look at the package de.mud.ssh for further information
about ssh or look at the official ssh homepage:
http://www.ssh.fi/.
Maintainer: Matthias L. Jugel
$Id: SSH.java 513 2005-12-19 07:59:45Z leo $- Matthias L. Jugel, Marcus Mei???ner
handler
protected SshIO handler
pass
protected String pass
user
protected String user
SSH
public SSH(PluginBus bus,
String id)
Create a new ssh plugin.
read
public int read(byte[] b)
throws IOException
Read data from the backend and decrypt it. This is a buffering read
as the encrypted information is usually smaller than its decrypted
pendant. So it will not read from the backend as long as there is
data in the buffer.
- read in interface FilterPlugin
b
- the buffer where to read the decrypted data in
- the amount of bytes actually read.
write
public void write(byte[] b)
throws IOException
Write data to the back end. This hands the data over to the ssh
protocol handler who encrypts the information and writes it to
the actual back end pipe.
- write in interface FilterPlugin
b
- the unencrypted data to be encrypted and sent