public static final class HttpClientHandler.ProxyInfo extends Object
Modifier and Type | Method and Description |
---|---|
String |
getPassword()
Returns the password to use when authenticating to the proxy.
|
URI |
getProxyUri()
Returns the
URI of the proxy. |
String |
getUsername()
Returns the username to use when authenticating to the proxy.
|
boolean |
hasCredentials()
Returns true if there is a set of username/password credentials defined.
|
static HttpClientHandler.ProxyInfo |
proxyInfo(URI proxyUri)
Creates an instance of ProxyInfo for a proxy that does not require authentication.
|
static HttpClientHandler.ProxyInfo |
proxyInfo(URI proxyUri,
String username,
String password)
Creates an instance of ProxyInfo for a proxy that requires authentication.
|
public static HttpClientHandler.ProxyInfo proxyInfo(URI proxyUri)
proxyUri
- the URI
of the proxy, only the scheme, host and port are used.public static HttpClientHandler.ProxyInfo proxyInfo(URI proxyUri, String username, String password)
proxyUri
- the URI
of the proxy, only the scheme, host and port are used.username
- the username to use when authenticating to the proxy.password
- the password to use when authenticating to the proxy.public String getUsername()
public String getPassword()
public boolean hasCredentials()
Copyright © 2010-2018, ForgeRock All Rights Reserved.