Class Proxy

java.lang.Object
com.okta.commons.http.config.Proxy

public class Proxy extends Object
HTTP proxy server communication settings, used if the Okta SDK Client must communicate through an HTTP Proxy.
Since:
0.5.0
  • Constructor Details

    • Proxy

      public Proxy(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(String host, int port, String username, 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 Details

    • getHost

      public String getHost()
    • getPort

      public int getPort()
    • getUsername

      public String getUsername()
    • getPassword

      public String getPassword()
    • isAuthenticationRequired

      public boolean isAuthenticationRequired()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object