public class ProxyData extends Object
Constructor and Description |
---|
ProxyData(Proxy proxy)
Creates a new
ProxyData instance without user name or password. |
ProxyData(Proxy proxy,
String proxyUser,
char[] proxyPassword)
Creates a new
ProxyData instance. |
Modifier and Type | Method and Description |
---|---|
void |
clearPassword()
Clears the stored password, if any.
|
char[] |
getPassword()
Obtains a copy of the internally stored password.
|
Proxy |
getProxy()
Obtains the remote
InetSocketAddress of the proxy to connect to. |
String |
getUser()
Obtains the user to log in at the proxy with.
|
public ProxyData(@NonNull Proxy proxy)
ProxyData
instance without user name or password.proxy
- to connect to; must not be Proxy.Type.DIRECT
and must have an InetSocketAddress
.public ProxyData(@NonNull Proxy proxy, String proxyUser, char[] proxyPassword)
ProxyData
instance.proxy
- to connect to; must not be Proxy.Type.DIRECT
and must have an InetSocketAddress
.proxyUser
- to use for log-in to the proxy, may be null
proxyPassword
- to use for log-in to the proxy, may be null
@NonNull public Proxy getProxy()
InetSocketAddress
of the proxy to connect to.public String getUser()
null
if nonepublic char[] getPassword()
null
if nonepublic void clearPassword()
Copyright © 2019 Eclipse JGit Project. All rights reserved.