Package com.okta.commons.http.config
Class Proxy
- java.lang.Object
-
- com.okta.commons.http.config.Proxy
-
public class Proxy extends java.lang.ObjectHTTP proxy server communication settings, used if the Okta SDK Client must communicate through an HTTP Proxy.- Since:
- 0.5.0
-
-
Constructor Summary
Constructors Constructor Description Proxy(java.lang.String host, int port)Creates a instance reflecting an HTTP proxy server that does not require authentication.Proxy(java.lang.String host, int port, java.lang.String username, java.lang.String password)Creates an instance reflecting an HTTP proxy server that requires username/password authentication.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetHost()java.lang.StringgetPassword()intgetPort()java.lang.StringgetUsername()inthashCode()booleanisAuthenticationRequired()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Proxy
public Proxy(java.lang.String host, int port)Creates a instance reflecting an HTTP proxy server that does not require authentication.- Parameters:
host- the proxy server host.port- the proxy server host port.
-
Proxy
public Proxy(java.lang.String host, int port, java.lang.String username, java.lang.String password)Creates an instance reflecting an HTTP proxy server that requires username/password authentication.- Parameters:
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.
-
-
Method Detail
-
getHost
public java.lang.String getHost()
-
getPort
public int getPort()
-
getUsername
public java.lang.String getUsername()
-
getPassword
public java.lang.String getPassword()
-
isAuthenticationRequired
public boolean isAuthenticationRequired()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-