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, setDefault
protected java.net.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication
in class java.net.Authenticator
public static void setAuthentication(java.lang.String username, java.lang.String password)
Copyright ? 2013 Regents of the University of California