public class PasswordAuthenticator
extends java.net.Authenticator
| Modifier and Type | Method and Description |
|---|---|
protected java.net.PasswordAuthentication |
getPasswordAuthentication()
Get the singleton PasswordAuthentication instance.
|
static void |
setAuthentication(java.lang.String username,
java.lang.String password)
Creates a new PasswordAuthenticator for the given name and password and
sets it as the default Authenticator for use within Java networking.
|
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefaultprotected java.net.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class java.net.Authenticatorpublic static void setAuthentication(java.lang.String username,
java.lang.String password)