public class ProxyInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyInfo.Type
Supported proxy types.
|
| Constructor and Description |
|---|
ProxyInfo(ProxyInfo.Type type,
SocketAddress address)
Creates a new unauthenticated ProxyInfo instance.
|
ProxyInfo(ProxyInfo.Type type,
SocketAddress address,
String username,
String password)
Creates a new authenticated ProxyInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
SocketAddress |
getAddress()
Gets the proxy's network address.
|
String |
getPassword()
Gets the proxy's authentication password.
|
ProxyInfo.Type |
getType()
Gets the proxy's type.
|
String |
getUsername()
Gets the proxy's authentication username.
|
boolean |
isAuthenticated()
Gets whether the proxy is authenticated with.
|
public ProxyInfo(ProxyInfo.Type type, SocketAddress address)
type - Type of proxy.address - Network address of the proxy.public ProxyInfo(ProxyInfo.Type type, SocketAddress address, String username, String password)
type - Type of proxy.address - Network address of the proxy.username - Username to authenticate with.password - Password to authenticate with.public ProxyInfo.Type getType()
public SocketAddress getAddress()
public boolean isAuthenticated()
public String getUsername()
public String getPassword()
Copyright © 2023. All rights reserved.