Package org.eclipse.jgit.transport.sshd
Class ProxyData
java.lang.Object
org.eclipse.jgit.transport.sshd.ProxyData
A DTO encapsulating the data needed to connect through a proxy server.
- Since:
- 5.2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the stored password, if any.char[]
Obtains a copy of the internally stored password.getProxy()
Obtains the remoteInetSocketAddress
of the proxy to connect to.getUser()
Obtains the user to log in at the proxy with.
-
Field Details
-
proxy
-
proxyUser
-
proxyPassword
private final char[] proxyPassword
-
-
Constructor Details
-
ProxyData
Creates a newProxyData
instance without user name or password.- Parameters:
proxy
- to connect to; must not beProxy.Type.DIRECT
and must have anInetSocketAddress
.
-
ProxyData
Creates a newProxyData
instance.- Parameters:
proxy
- to connect to; must not beProxy.Type.DIRECT
and must have anInetSocketAddress
.proxyUser
- to use for log-in to the proxy, may benull
proxyPassword
- to use for log-in to the proxy, may benull
-
-
Method Details
-
getProxy
Obtains the remoteInetSocketAddress
of the proxy to connect to.- Returns:
- the remote address of the proxy
-
getUser
Obtains the user to log in at the proxy with.- Returns:
- the user name, or
null
if none
-
getPassword
public char[] getPassword()Obtains a copy of the internally stored password.- Returns:
- the password or
null
if none
-
clearPassword
public void clearPassword()Clears the stored password, if any.
-