public class AuthenticatorProxySettingsManager extends Authenticator
Authenticator implementation based in ProxySettingsManager.Authenticator.RequestorType| Modifier and Type | Field and Description |
|---|---|
static AuthenticatorProxySettingsManager |
INSTANCE |
| Constructor and Description |
|---|
AuthenticatorProxySettingsManager() |
| Modifier and Type | Method and Description |
|---|---|
protected PasswordAuthentication |
findProxyPasswordAuthentication(String sRequestingHost,
InetAddress aRequestingSite,
int nRequestingPort,
String sRequestingProtocol,
String sRequestingPrompt,
String sRequestingScheme,
URL aRequestingURL) |
protected PasswordAuthentication |
getPasswordAuthentication() |
static PasswordAuthentication |
requestProxyPasswordAuthentication(String sHostName,
int nPort,
String sProtocol)
Shortcut method for requesting proxy password authentication.
|
static void |
setAsDefault()
Set the
AuthenticatorProxySettingsManager as the default
Authenticator. |
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefaultpublic static final AuthenticatorProxySettingsManager INSTANCE
public static void setAsDefault()
AuthenticatorProxySettingsManager as the default
Authenticator.@Nullable protected PasswordAuthentication findProxyPasswordAuthentication(@Nullable String sRequestingHost, @Nullable InetAddress aRequestingSite, int nRequestingPort, @Nonnull String sRequestingProtocol, @Nullable String sRequestingPrompt, @Nonnull String sRequestingScheme, @Nullable URL aRequestingURL)
sRequestingHost - Requesting host. May be null.aRequestingSite - Requesting site. May be null.nRequestingPort - Requesting port. May be ≤ 0.sRequestingProtocol - Requesting protocol. May be null.sRequestingPrompt - User query to show. May be null.sRequestingScheme - Authentication scheme to use. May be null.aRequestingURL - The full requesting URL. May be null.@Nullable protected final PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class Authenticator@Nullable public static PasswordAuthentication requestProxyPasswordAuthentication(@Nullable String sHostName, @Nullable int nPort, @Nullable String sProtocol)
sHostName - Hostname to querynPort - Port to querysProtocol - Protocol to usenull if nothing is found.Copyright © 2016–2019 Philip Helger. All rights reserved.