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, getRequestingSite
DefaultAuthenticator(java.lang.String pass)
pass
- the password.protected final PasswordAuthentication getPasswordAuthentication()
Authenticator
Note 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