Class NetworkSettings.ProxyCredentialsProvider
java.lang.Object
org.openide.util.NetworkSettings.ProxyCredentialsProvider
- Enclosing class:
NetworkSettings
Allows
NetBeans Platform users to provide own proxy and network credentials separately.
- Since:
- 8.17
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringgetProxyHost(URI u) Returns thehostnamepart of network proxy address based on given URI to access the resource at.protected abstract char[]Returns thepasswordfor Proxy Authentication.protected abstract StringgetProxyPort(URI u) Returns theportpart of network proxy address based on given URI to access the resource at.protected abstract StringReturns theusernamefor Proxy Authentication.protected abstract booleanReturnstrueif Proxy Authentication is required.
-
Constructor Details
-
ProxyCredentialsProvider
public ProxyCredentialsProvider()
-
-
Method Details
-
getProxyUserName
-
getProxyPassword
Returns thepasswordfor Proxy Authentication. Returnsnullif no authentication required.- Parameters:
u- The URI that a connection is required to- Returns:
- password for Proxy Authentication
-
isProxyAuthentication
Returnstrueif Proxy Authentication is required.- Parameters:
u- The URI that a connection is required to- Returns:
trueif authentication required.
-
getProxyHost
-
getProxyPort
-