|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.protocols.ssh.Ssh
public class Ssh
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
|
static int |
DEFAULT_TIMEOUT
|
| Constructor Summary | |
|---|---|
Ssh()
|
|
| Method Summary | |
|---|---|
protected boolean |
connect()
Attempt to connect, based on the parameters which have been set in the object. |
InetAddress |
getAddress()
Get the address to connect to. |
protected Throwable |
getError()
|
File |
getKeyDirectory()
Get the directory to search for SSH keys. |
String |
getPassword()
Get the password to connect with. |
int |
getPort()
Get the port to connect to. |
String |
getServerVersion()
Get the SSH server version banner. |
protected com.jcraft.jsch.Session |
getSession()
Get the Jsch session object. |
int |
getTimeout()
Get the timeout in milliseconds. |
String |
getUsername()
Get the username to connect as. |
void |
setAddress(InetAddress address)
Set the address to connect to. |
void |
setKeyDirectory(File directory)
Set the directory to search for SSH keys. |
void |
setPassword(String password)
Set the password to connect with. |
void |
setPort(int port)
Set the port to connect to. |
void |
setTimeout(int milliseconds)
Set the timeout in milliseconds. |
void |
setUsername(String username)
Set the username to connect as. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_TIMEOUT
public static final int DEFAULT_PORT
| Constructor Detail |
|---|
public Ssh()
| Method Detail |
|---|
public void setAddress(InetAddress address)
address - the addresspublic InetAddress getAddress()
public void setPort(int port)
port - the portpublic int getPort()
public void setTimeout(int milliseconds)
milliseconds - the timeoutpublic int getTimeout()
public void setKeyDirectory(File directory)
directory - the directorypublic File getKeyDirectory()
public void setUsername(String username)
username - the usernamepublic String getUsername()
public void setPassword(String password)
password - the passwordpublic String getPassword()
public String getServerVersion()
protected com.jcraft.jsch.Session getSession()
protected boolean connect()
throws InsufficientParametersException
InsufficientParametersExceptionprotected Throwable getError()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||