protected static class MailUtil.SmtpAuthenticator extends javax.mail.Authenticator
Authenticator
subclass that authenticates a user to
an SMTP server.Constructor and Description |
---|
SmtpAuthenticator(String login,
String pass)
Constructs a new SmtpAuthenticator with a supplied username and password.
|
Modifier and Type | Method and Description |
---|---|
javax.mail.PasswordAuthentication |
getPasswordAuthentication()
Returns the password used to authenticate to the SMTP server.
|
public SmtpAuthenticator(String login, String pass)
login
- the user namepass
- the passwordpublic javax.mail.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication
in class javax.mail.Authenticator
PasswordAuthentication
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.