public class UrlAuthenticator extends java.net.Authenticator implements PasswordAuthenticator
| Constructor and Description |
|---|
UrlAuthenticator(PasswordAuthenticator passwordAuthenticator)
Create the URL authenticator.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.PasswordAuthentication |
getPasswordAuthentication()
Called when when a password-protected URL is accessed.
|
static void |
setDefaultAuthenticator(java.net.Authenticator authenticator)
Set the default authenticator.
|
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefaultpublic UrlAuthenticator(PasswordAuthenticator passwordAuthenticator)
passwordAuthenticator - the password authenticator.public java.net.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in interface PasswordAuthenticatorgetPasswordAuthentication in class java.net.Authenticatorpublic static void setDefaultAuthenticator(java.net.Authenticator authenticator)
authenticator - the authenticator.