public class Proxy extends Object
Constructor and Description |
---|
Proxy(String host,
int port)
Creates a instance reflecting an HTTP proxy server that does not require authentication.
|
Proxy(String host,
int port,
String username,
String password)
Creates an instance reflecting an HTTP proxy server that requires username/password authentication.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getHost() |
String |
getPassword() |
int |
getPort() |
String |
getUsername() |
int |
hashCode() |
boolean |
isAuthenticationRequired() |
String |
toString() |
public Proxy(String host, int port)
host
- the proxy server host.port
- the proxy server host port.public Proxy(String host, int port, String username, String password)
host
- the proxy server host.port
- the proxy server host port.username
- the username to use when authenticating with the proxy server.password
- the password to use when authenticating with the proxy server.Copyright © 2017–2019 Okta. All rights reserved.