org.apache.taglibs.mailer2
Class MailAuthenticator

java.lang.Object
  extended byjavax.mail.Authenticator
      extended byorg.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

Constructor Summary
MailAuthenticator(String user, String password)
          Constructor for PLAIN or LOGIN SMTP authentication.
 
Method Summary
protected  PasswordAuthentication getPasswordAuthentication()
          Returns a PasswordAuthentication object.
 
Methods inherited from class javax.mail.Authenticator
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailAuthenticator

public MailAuthenticator(String user,
                         String password)
Constructor for PLAIN or LOGIN SMTP authentication.

Parameters:
user - Username to authenticate with
password - Password to authenticate with
Method Detail

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