public class ConsoleAuthenticator extends CachedAuthenticator
CachedAuthenticator.CachedAuthentication
Modifier and Type | Field and Description |
---|---|
private java.io.Console |
cons |
Constructor and Description |
---|
ConsoleAuthenticator() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
formatRealm() |
static void |
install()
Install this authenticator implementation into the JVM.
|
protected java.net.PasswordAuthentication |
promptPasswordAuthentication()
Prompt for and request authentication from the end-user.
|
add, getPasswordAuthentication
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
public static void install()
protected java.net.PasswordAuthentication promptPasswordAuthentication()
promptPasswordAuthentication
in class CachedAuthenticator
private java.lang.String formatRealm()