public class DefaultAuthenticator extends javax.mail.Authenticator
| Constructor | Description |
|---|---|
DefaultAuthenticator(java.lang.String userName,
java.lang.String password) |
Default constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected javax.mail.PasswordAuthentication |
getPasswordAuthentication() |
Gets the authentication object that will be used to login to the mail
server.
|
public DefaultAuthenticator(java.lang.String userName, java.lang.String password)
userName - user name to use when authentication is requestedpassword - password to use when authentication is requestedprotected javax.mail.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class javax.mail.AuthenticatorPasswordAuthentication object containing the
login information.