private static final class MailHandler.DefaultAuthenticator extends Authenticator
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
pass
The password to use.
|
| Constructor and Description |
|---|
DefaultAuthenticator(java.lang.String pass)
Creates a new DefaultAuthenticator.
|
| Modifier and Type | Method and Description |
|---|---|
protected PasswordAuthentication |
getPasswordAuthentication()
Called when password authentication is needed.
|
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSiteDefaultAuthenticator(java.lang.String pass)
pass - the password.protected final PasswordAuthentication getPasswordAuthentication()
AuthenticatorNote that if this method uses a dialog to prompt the user for this information, the dialog needs to block until the user supplies the information. This method can not simply return after showing the dialog.
getPasswordAuthentication in class Authenticator