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, setDefault
public UrlAuthenticator(PasswordAuthenticator passwordAuthenticator)
passwordAuthenticator
- the password authenticator.public java.net.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication
in interface PasswordAuthenticator
getPasswordAuthentication
in class java.net.Authenticator
public static void setDefaultAuthenticator(java.net.Authenticator authenticator)
authenticator
- the authenticator.