| java.lang.Object java.net.Authenticator edu.indiana.lib.twinpeaks.net.HttpAuthenticator
HttpAuthenticator | public class HttpAuthenticator extends java.net.Authenticator (Code) | | Handle network authentication.
When we try to access a protected site,
getPasswordAuthentication() is called by the network
connection code (HttpURLConnection in our case) to obtain
any credentials (username and password) required to access the site.
Note:
This only occurs until we successfully "log in" - after that, we are
not invoked again for the site in question.
|
getPasswordAuthentication | protected synchronized PasswordAuthentication getPasswordAuthentication()(Code) | | Override the default implementation to provide the credentials required
for our network authentication
|
setCredentials | public synchronized void setCredentials(String realm, String username, String password)(Code) | | Establish realm login credentials
Parameters: realm - Realm for authentication (ADS ) Parameters: username - User for login Parameters: password - Password |
Methods inherited from java.net.Authenticator | protected PasswordAuthentication getPasswordAuthentication()(Code)(Java Doc) final protected String getRequestingHost()(Code)(Java Doc) final protected int getRequestingPort()(Code)(Java Doc) final protected String getRequestingPrompt()(Code)(Java Doc) final protected String getRequestingProtocol()(Code)(Java Doc) final protected String getRequestingScheme()(Code)(Java Doc) final protected InetAddress getRequestingSite()(Code)(Java Doc) protected URL getRequestingURL()(Code)(Java Doc) protected RequestorType getRequestorType()(Code)(Java Doc) public static PasswordAuthentication requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme)(Code)(Java Doc) public static PasswordAuthentication requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme)(Code)(Java Doc) public static PasswordAuthentication requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, RequestorType reqType)(Code)(Java Doc) public static synchronized void setDefault(Authenticator a)(Code)(Java Doc)
|
|
|