Package org.apache.wiki.util
Class MailUtil.SmtpAuthenticator
- java.lang.Object
-
- javax.mail.Authenticator
-
- org.apache.wiki.util.MailUtil.SmtpAuthenticator
-
- Enclosing class:
- MailUtil
protected static class MailUtil.SmtpAuthenticator extends javax.mail.Authenticator
SimpleAuthenticator
subclass that authenticates a user to an SMTP server.
-
-
Constructor Summary
Constructors Constructor Description SmtpAuthenticator(java.lang.String login, java.lang.String pass)
Constructs a new SmtpAuthenticator with a supplied username and password.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.mail.PasswordAuthentication
getPasswordAuthentication()
Returns the password used to authenticate to the SMTP server.
-
-
-
Constructor Detail
-
SmtpAuthenticator
public SmtpAuthenticator(java.lang.String login, java.lang.String pass)
Constructs a new SmtpAuthenticator with a supplied username and password.- Parameters:
login
- the usernamepass
- the password
-
-
Method Detail
-
getPasswordAuthentication
public javax.mail.PasswordAuthentication getPasswordAuthentication()
Returns the password used to authenticate to the SMTP server.- Overrides:
getPasswordAuthentication
in classjavax.mail.Authenticator
- Returns:
PasswordAuthentication
-
-