com.ecyrd.jspwiki.util
Class MailUtil.SmtpAuthenticator
java.lang.Object
javax.mail.Authenticator
com.ecyrd.jspwiki.util.MailUtil.SmtpAuthenticator
- Enclosing class:
- MailUtil
protected static class MailUtil.SmtpAuthenticator
- extends Authenticator
Simple Authenticator
subclass that authenticates a user to
an SMTP server.
- Author:
- Christoph Sauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailUtil.SmtpAuthenticator
public MailUtil.SmtpAuthenticator(String login,
String pass)
- Constructs a new SmtpAuthenticator with a supplied username and password.
- Parameters:
login
- the user namepass
- the password
getPasswordAuthentication
public PasswordAuthentication getPasswordAuthentication()
- Returns the password used to authenticate to the SMTP server.
- Overrides:
getPasswordAuthentication
in class Authenticator
- Returns:
PasswordAuthentication