public abstract class CachedAuthenticator
extends java.net.Authenticator
Modifier and Type | Class and Description |
---|---|
static class |
CachedAuthenticator.CachedAuthentication
Authentication data to remember and reuse.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<CachedAuthenticator.CachedAuthentication> |
cached |
Constructor and Description |
---|
CachedAuthenticator() |
Modifier and Type | Method and Description |
---|---|
static void |
add(CachedAuthenticator.CachedAuthentication ca)
Add a cached authentication for future use.
|
protected java.net.PasswordAuthentication |
getPasswordAuthentication() |
protected abstract java.net.PasswordAuthentication |
promptPasswordAuthentication()
Prompt for and request authentication from the end-user.
|
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
private static final java.util.Collection<CachedAuthenticator.CachedAuthentication> cached
public static void add(CachedAuthenticator.CachedAuthentication ca)
ca
- the information we should remember.protected final java.net.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication
in class java.net.Authenticator
protected abstract java.net.PasswordAuthentication promptPasswordAuthentication()