Class NetworkSettings.ProxyCredentialsProvider

java.lang.Object
org.openide.util.NetworkSettings.ProxyCredentialsProvider
Enclosing class:
NetworkSettings

public abstract static class NetworkSettings.ProxyCredentialsProvider extends Object
Allows NetBeans Platform users to provide own proxy and network credentials separately.
Since:
8.17
See Also:
  • Constructor Details

    • ProxyCredentialsProvider

      public ProxyCredentialsProvider()
  • Method Details

    • getProxyUserName

      protected abstract String getProxyUserName(URI u)
      Returns the username for Proxy Authentication. Returns null if no authentication required.
      Parameters:
      u - The URI that a connection is required to
      Returns:
      username for Proxy Authentication
    • getProxyPassword

      protected abstract char[] getProxyPassword(URI u)
      Returns the password for Proxy Authentication. Returns null if no authentication required.
      Parameters:
      u - The URI that a connection is required to
      Returns:
      password for Proxy Authentication
    • isProxyAuthentication

      protected abstract boolean isProxyAuthentication(URI u)
      Returns true if Proxy Authentication is required.
      Parameters:
      u - The URI that a connection is required to
      Returns:
      true if authentication required.
    • getProxyHost

      protected abstract String getProxyHost(URI u)
      Returns the hostname part of network proxy address based on given URI to access the resource at. Returns null for direct connection.
      Parameters:
      u - The URI that a connection is required to
      Returns:
      the hostname part of the Proxy address or null
    • getProxyPort

      protected abstract String getProxyPort(URI u)
      Returns the port part of network proxy address based on given URI to access the resource at. Returns null for direct connection.
      Parameters:
      u - The URI that a connection is required to
      Returns:
      the port part of the Proxy address or null