public class DefaultAuthenticator
extends java.net.Authenticator
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DefaultAuthenticator.AuthInfo
Represents authorization information needed by
DefaultAuthenticator to authenticate access to remote resources. |
private static class |
DefaultAuthenticator.DefaultRImpl |
static interface |
DefaultAuthenticator.Receiver |
Modifier and Type | Field and Description |
---|---|
private java.util.List<DefaultAuthenticator.AuthInfo> |
authInfo |
private static int |
counter |
private static DefaultAuthenticator |
instance |
private java.lang.String |
proxyPasswd |
private java.lang.String |
proxyUser |
private static java.net.Authenticator |
systemAuthenticator |
Constructor and Description |
---|
DefaultAuthenticator() |
Modifier and Type | Method and Description |
---|---|
static DefaultAuthenticator |
getAuthenticator() |
(package private) static java.net.Authenticator |
getCurrentAuthenticator() |
protected java.net.PasswordAuthentication |
getPasswordAuthentication() |
private static java.lang.reflect.Field |
getTheAuthenticator() |
private DefaultAuthenticator.AuthInfo |
parseLine(java.lang.String text) |
static void |
reset() |
void |
setAuth(java.io.File f,
DefaultAuthenticator.Receiver l) |
void |
setProxyAuth(java.lang.String proxyAuth)
Proxy authorization string in form of username:password.
|
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
private static DefaultAuthenticator instance
private static java.net.Authenticator systemAuthenticator
private java.lang.String proxyUser
private java.lang.String proxyPasswd
private final java.util.List<DefaultAuthenticator.AuthInfo> authInfo
private static int counter
public static DefaultAuthenticator getAuthenticator()
public static void reset()
protected java.net.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication
in class java.net.Authenticator
public void setProxyAuth(java.lang.String proxyAuth)
proxyAuth
- public void setAuth(java.io.File f, DefaultAuthenticator.Receiver l)
private DefaultAuthenticator.AuthInfo parseLine(java.lang.String text) throws java.lang.Exception
java.lang.Exception
static java.net.Authenticator getCurrentAuthenticator()
private static java.lang.reflect.Field getTheAuthenticator()