public class DefaultAuthenticator extends javax.mail.Authenticator
Constructor and Description |
---|
DefaultAuthenticator(java.lang.String userName,
java.lang.String password)
Default constructor
|
Modifier and Type | Method and 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.Authenticator
PasswordAuthentication
object containing the
login information.