org.openide.util 8.19.1

org.openide.util
Class NetworkSettings.ProxyCredentialsProvider

java.lang.Object
  extended by 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:
http://wiki.netbeans.org/Authenticator

Constructor Summary
NetworkSettings.ProxyCredentialsProvider()
           
 
Method Summary
protected abstract  String getProxyHost(URI u)
          Returns the hostname part of network proxy address based on given URI to access the resource at.
protected abstract  char[] getProxyPassword(URI u)
          Returns the password for Proxy Authentication.
protected abstract  String getProxyPort(URI u)
          Returns the port part of network proxy address based on given URI to access the resource at.
protected abstract  String getProxyUserName(URI u)
          Returns the username for Proxy Authentication.
protected abstract  boolean isProxyAuthentication(URI u)
          Returns true if Proxy Authentication is required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkSettings.ProxyCredentialsProvider

public NetworkSettings.ProxyCredentialsProvider()
Method Detail

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

org.openide.util 8.19.1

Built on December 7 2011.  |  Portions Copyright 1997-2011 Oracle. All rights reserved.