org.apache.taglibs.mailer2
Class MailAuthenticator
java.lang.Object
javax.mail.Authenticator
org.apache.taglibs.mailer2.MailAuthenticator
- public class MailAuthenticator
- extends Authenticator
A password authentication class used to access an SMTP server that requires PLAIN or LOGIN SMTP authentication.
- Version:
- 2.0
- Author:
- Jeroen van Vianen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailAuthenticator
public MailAuthenticator(String user,
String password)
- Constructor for PLAIN or LOGIN SMTP authentication.
- Parameters:
user - Username to authenticate withpassword - Password to authenticate with
getPasswordAuthentication
protected PasswordAuthentication getPasswordAuthentication()
- Returns a PasswordAuthentication object.
- Returns:
- - PasswordAuthentication object containing the users name and password
Copyright © 2004 Apache Software Foundation, http://jakarta.apache.org/taglibs