org.xfp.components
Class SMTPHelper.MailAuthenticator

java.lang.Object
  extended byjavax.mail.Authenticator
      extended byorg.xfp.components.SMTPHelper.MailAuthenticator
Enclosing class:
SMTPHelper

public class SMTPHelper.MailAuthenticator
extends javax.mail.Authenticator

Class for SMTP authentication.

Version:
$Id: SMTPHelper.java,v 1.1 2004/03/19 15:56:43 flaviotordini Exp $
Author:
Flavio Tordini

Field Summary
protected  java.lang.String m_password
          The users password used for basic authentication
protected  java.lang.String m_user
          The users username used for basic authentication
 
Constructor Summary
SMTPHelper.MailAuthenticator()
          Constructor calls the super class constructor
SMTPHelper.MailAuthenticator(java.lang.String user, java.lang.String password)
          Constructor calls the super class constructor
 
Method Summary
protected  javax.mail.PasswordAuthentication getPasswordAuthentication()
          overrides the getPasswordAuthentication method in the super class
 
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
 

Field Detail

m_user

protected java.lang.String m_user
The users username used for basic authentication


m_password

protected java.lang.String m_password
The users password used for basic authentication

Constructor Detail

SMTPHelper.MailAuthenticator

public SMTPHelper.MailAuthenticator(java.lang.String user,
                                    java.lang.String password)
Constructor calls the super class constructor

Parameters:
user - param
password - param

SMTPHelper.MailAuthenticator

public SMTPHelper.MailAuthenticator()
Constructor calls the super class constructor

Method Detail

getPasswordAuthentication

protected javax.mail.PasswordAuthentication getPasswordAuthentication()
overrides the getPasswordAuthentication method in the super class

Returns:
- PasswordAuthentication object containing the users name and password


Copyright © 2003-2004 XFP Team. All Rights Reserved.