Class ProxyData
java.lang.Object
org.apache.sshd.client.proxy.ProxyData
An object encapsulating the data needed to connect through a proxy server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the stored password, if any.Obtains theInetSocketAddressto connect to.char[]Obtains a copy of the internally stored password.getType()Obtains theProxyto connect to.getUser()Obtains the user to log in at the proxy with.
-
Constructor Details
-
ProxyData
Creates a newProxyDatainstance without user name or password.- Parameters:
proxy- to connect to; must not beProxy.Type.DIRECTand must have anInetSocketAddress.
-
ProxyData
Creates a newProxyDatainstance.- Parameters:
proxy- to connect to; must not beProxy.Type.DIRECTand must have anInetSocketAddress.proxyUser- to use for log-in to the proxy, may benullproxyPassword- to use for log-in to the proxy, may benull
-
-
Method Details
-
getAddress
Obtains theInetSocketAddressto connect to.- Returns:
- the
InetSocketAddress
-
getType
-
getUser
Obtains the user to log in at the proxy with.- Returns:
- the user name, or
nullif none
-
getPassword
public char[] getPassword()Obtains a copy of the internally stored password.- Returns:
- the password or
nullif none
-
clearPassword
public void clearPassword()Clears the stored password, if any.
-