Class ProxyOptions

java.lang.Object
com.auth0.client.ProxyOptions

public class ProxyOptions extends Object
Used to configure Java Proxy-related configurations.
  • Constructor Details

    • ProxyOptions

      public ProxyOptions(Proxy proxy)
      Builds a new instance using the given Proxy. The Proxy will not have authentication unless setBasicAuthentication(String, char[]) is set.
      Parameters:
      proxy - the Proxy to use.
  • Method Details

    • setBasicAuthentication

      public void setBasicAuthentication(String username, char[] password)
      Setter that builds the authentication value to use for this Proxy.
      Parameters:
      username - the username to use.
      password - the password to use.
    • getProxy

      public Proxy getProxy()
      Getter of the Proxy instance to set
      Returns:
      the Proxy instance to set
    • getBasicAuthentication

      public String getBasicAuthentication()
      Getter of the authentication value to use for this Proxy.
      Returns:
      the authentication value to use for this Proxy, or null if unset.