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)
FilterPlugin
setFilterSource
in interface FilterPlugin
source
- the data sourcepublic FilterPlugin getFilterSource()
getFilterSource
in interface FilterPlugin
public int read(byte[] b) throws java.io.IOException
read
in interface FilterPlugin
b
- the buffer where to read the decrypted data injava.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in interface FilterPlugin
b
- the unencrypted data to be encrypted and sentjava.io.IOException
public javax.swing.JComponent getPluginVisual()
VisualPlugin
getPluginVisual
in interface VisualPlugin
public javax.swing.JMenu getPluginMenu()
VisualPlugin
getPluginMenu
in interface VisualPlugin