Class ProxyConfiguration

    • Field Detail

      • SYSTEM_DEFAULTS

        public static final ProxyConfiguration SYSTEM_DEFAULTS
        Gets the system defaults for proxy configuration and authentication.
    • Method Detail

      • proxyAddress

        public Proxy proxyAddress()
        Gets the proxy address.
        Returns:
        The proxy address. Returns null if user creates proxy credentials with SYSTEM_DEFAULTS.
      • credentials

        public PasswordAuthentication credentials()
        Gets credentials to authenticate against proxy with.
        Returns:
        The credentials to authenticate against proxy with. Returns null if no credentials were set. This occurs when user uses SYSTEM_DEFAULTS.
      • hasUserDefinedCredentials

        public boolean hasUserDefinedCredentials()
        Gets whether the user has defined credentials.
        Returns:
        true if the user has defined the credentials to use, false otherwise.
      • isProxyAddressConfigured

        public boolean isProxyAddressConfigured()
        Gets whether the proxy address has been configured. Used to determine whether to use system-defined or user-defined proxy.
        Returns:
        true if the proxy url has been set, and false otherwise.