| Modifier and Type | Class and Description |
|---|---|
| public static class | CachedAuthenticator.
Authentication data to remember and reuse. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Collection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | add(CachedAuthenticator.
the information we should remember. caAdd a cached authentication for future use. |
| protected final PasswordAuthentication | getPasswordAuthentication()
Overrides java. Called when password authorization is needed. |
| protected abstract PasswordAuthentication | Returns: the authentication data; null if the user canceled the request and does not want to continue.Prompt for and request authentication from the end-user. |
| cached | back to summary |
|---|---|
| private static final Collection<CachedAuthenticator. | |
| CachedAuthenticator | back to summary |
|---|---|
| public CachedAuthenticator() | |
| add | back to summary |
|---|---|
| public static void add(CachedAuthenticator. Add a cached authentication for future use.
| |
| getPasswordAuthentication | back to summary |
|---|---|
| protected final PasswordAuthentication getPasswordAuthentication() Overrides java. Doc from java. Called when password authorization is needed. Subclasses should override the default implementation, which returns null.
| |
| promptPasswordAuthentication | back to summary |
|---|---|
| protected abstract PasswordAuthentication promptPasswordAuthentication() Prompt for and request authentication from the end-user.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final String | |
| pack-priv final int | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| public | CachedAuthentication(final String
system this is for. aHost, final int port number of the service. aPort, final String username at the service. aUser, final String password at the service. aPass)Create a new cached authentication. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv PasswordAuthentication |
| host | back to summary |
|---|---|
| pack-priv final String host | |
| pass | back to summary |
|---|---|
| pack-priv final String pass | |
| port | back to summary |
|---|---|
| pack-priv final int port | |
| user | back to summary |
|---|---|
| pack-priv final String user | |
| CachedAuthentication | back to summary |
|---|---|
| public CachedAuthentication(final String aHost, final int aPort, final String aUser, final String aPass) Create a new cached authentication. | |
| toPasswordAuthentication | back to summary |
|---|---|
| pack-priv PasswordAuthentication toPasswordAuthentication() | |