protected static class MailUtil.SmtpAuthenticator extends javax.mail.Authenticator
Authenticator subclass that authenticates a user to
an SMTP server.| Constructor and Description |
|---|
SmtpAuthenticator(java.lang.String login,
java.lang.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(java.lang.String login, java.lang.String pass)
login - the usernamepass - the passwordpublic javax.mail.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class javax.mail.AuthenticatorPasswordAuthenticationCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.