|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vhosting.netconf.transport.ssh.SshAuthInfo
public class SshAuthInfo
This class provides the information needed to make a connection Netconf over SSH-2 such as a remote host name, user name and password.
Constructor Summary | |
---|---|
SshAuthInfo(java.net.InetSocketAddress host,
java.lang.String uname,
java.io.File pemFile,
java.lang.String pemFilePass)
Prepares a connection of type 'AuthType.PUBLICKEY_AUTH' on the specified host using a PEM file. |
|
SshAuthInfo(java.net.InetSocketAddress host,
java.lang.String uname,
java.lang.String passwd)
Prepares a connection of type 'AuthType.BASIC_AUTH' on the specified host. |
|
SshAuthInfo(java.lang.String uname,
java.lang.String passwd)
Prepares a connection of type 'AuthType.BASIC_AUTH' on the host localhost at port 380 (default Netconf port) |
|
SshAuthInfo(java.lang.String hostName,
java.lang.String uname,
java.io.File pemFile,
java.lang.String pemFilePass)
Prepares a connection of type 'AuthType.PUBLICKEY_AUTH' on the specified host name at the default port 380 using a PEM file. |
|
SshAuthInfo(java.lang.String hostName,
java.lang.String uname,
java.lang.String passwd)
Prepares a connection of type 'AuthType.BASIC_AUTH' on the specified host at port 380 (default Netconf port) |
Method Summary | |
---|---|
java.net.InetSocketAddress |
getHost()
Get the host. |
java.lang.String |
getPasswd()
Get the password. |
java.io.File |
getPemFile()
Get the PEM file. |
java.lang.String |
getPemFilePass()
Get the PEM file password. |
java.net.InetSocketAddress |
getProxyHost()
Retrieve the HTTP Proxy host. |
java.lang.String |
getUname()
Get the User name. |
void |
removeProxyHost()
Remove the HTTP Proxy when is set. |
void |
setProxyHost(java.net.InetSocketAddress proxyHost)
This method permit to specific an HTTP Proxy when exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SshAuthInfo(java.lang.String uname, java.lang.String passwd)
uname
- The User name.passwd
- The password.public SshAuthInfo(java.lang.String hostName, java.lang.String uname, java.lang.String passwd)
hostName
- The Host name.uname
- The User name.passwd
- The password.public SshAuthInfo(java.net.InetSocketAddress host, java.lang.String uname, java.lang.String passwd)
host
- The Host.uname
- The User name.passwd
- The password.public SshAuthInfo(java.net.InetSocketAddress host, java.lang.String uname, java.io.File pemFile, java.lang.String pemFilePass)
host
- The Host.uname
- The User name.pemFile
- The PEM file.pemFilePass
- The PEM file password.public SshAuthInfo(java.lang.String hostName, java.lang.String uname, java.io.File pemFile, java.lang.String pemFilePass)
hostName
- The Host name.uname
- The User name.pemFile
- The PEM file.pemFilePass
- The PEM file password.Method Detail |
---|
public final void setProxyHost(java.net.InetSocketAddress proxyHost)
proxyHost
- The HTTP Proxy host name.public java.net.InetSocketAddress getProxyHost()
public java.lang.String getUname()
public java.io.File getPemFile()
public java.lang.String getPemFilePass()
public java.lang.String getPasswd()
public java.net.InetSocketAddress getHost()
public void removeProxyHost()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |