jgnash.net
Class NetworkAuthenticator
java.lang.Object
java.net.Authenticator
jgnash.net.NetworkAuthenticator
public class NetworkAuthenticator
- extends java.net.Authenticator
An Authenticator that will pop up a dialog and ask for http authentication
info if it has not assigned. This does not make authentication information
permanent. That must be done using the options configuration for http connect
- Version:
- $Id$
- Author:
- Craig Cavanaugh
| Nested classes/interfaces inherited from class java.net.Authenticator |
java.net.Authenticator.RequestorType |
|
Field Summary |
private java.util.prefs.Preferences |
auth
|
private static java.lang.String |
HTTPPASS
|
private static java.lang.String |
HTTPUSER
|
static java.lang.String |
NODEHTTP
|
static java.lang.String |
PROXYHOST
|
static java.lang.String |
PROXYPORT
|
private static java.lang.String |
USEAUTH
|
static java.lang.String |
USEPROXY
|
| Methods inherited from class java.net.Authenticator |
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NODEHTTP
public static final java.lang.String NODEHTTP
- See Also:
- Constant Field Values
HTTPUSER
private static final java.lang.String HTTPUSER
- See Also:
- Constant Field Values
HTTPPASS
private static final java.lang.String HTTPPASS
- See Also:
- Constant Field Values
USEPROXY
public static final java.lang.String USEPROXY
- See Also:
- Constant Field Values
USEAUTH
private static final java.lang.String USEAUTH
- See Also:
- Constant Field Values
PROXYHOST
public static final java.lang.String PROXYHOST
- See Also:
- Constant Field Values
PROXYPORT
public static final java.lang.String PROXYPORT
- See Also:
- Constant Field Values
auth
private java.util.prefs.Preferences auth
NetworkAuthenticator
public NetworkAuthenticator()
setName
public static void setName(java.lang.String name)
getName
public static java.lang.String getName()
setHost
public static void setHost(java.lang.String host)
getHost
public static java.lang.String getHost()
setPort
public static void setPort(int port)
getPort
public static int getPort()
setPassword
public static void setPassword(java.lang.String password)
getPassword
public static java.lang.String getPassword()
setUseAuthentication
public static void setUseAuthentication(boolean use)
setUseProxy
public static void setUseProxy(boolean use)
isProxyUsed
public static boolean isProxyUsed()
isAuthenticationUsed
public static boolean isAuthenticationUsed()
getPasswordAuthentication
protected java.net.PasswordAuthentication getPasswordAuthentication()
- Overrides:
getPasswordAuthentication in class java.net.Authenticator