de.mud.jta.plugin
public class SSH extends Plugin implements FilterPlugin, VisualPlugin
Maintainer: Matthias L. Jugel
| Modifier and Type | Field and Description |
|---|---|
protected SshIO |
handler |
protected java.lang.String |
pass |
protected FilterPlugin |
source |
protected java.lang.String |
user |
| Constructor and Description |
|---|
SSH(PluginBus bus,
java.lang.String id)
Create a new ssh plugin.
|
| Modifier and Type | Method and Description |
|---|---|
FilterPlugin |
getFilterSource() |
javax.swing.JMenu |
getPluginMenu()
Get the menu entry for this component.
|
javax.swing.JComponent |
getPluginVisual()
Get the visible components from the plugin.
|
int |
read(byte[] b)
Read data from the backend and decrypt it.
|
void |
setFilterSource(FilterPlugin source)
Set the source plugin where we get our data from and where the data
sink (write) is.
|
void |
write(byte[] b)
Write data to the back end.
|
protected FilterPlugin source
protected SshIO handler
protected java.lang.String user
protected java.lang.String pass
public SSH(PluginBus bus, java.lang.String id)
public void setFilterSource(FilterPlugin source)
FilterPluginsetFilterSource in interface FilterPluginsource - the data sourcepublic FilterPlugin getFilterSource()
getFilterSource in interface FilterPluginpublic int read(byte[] b)
throws java.io.IOException
read in interface FilterPluginb - the buffer where to read the decrypted data injava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in interface FilterPluginb - the unencrypted data to be encrypted and sentjava.io.IOExceptionpublic javax.swing.JComponent getPluginVisual()
VisualPlugingetPluginVisual in interface VisualPluginpublic javax.swing.JMenu getPluginMenu()
VisualPlugingetPluginMenu in interface VisualPlugin