com.ibm.commerce.emarketing.utils
Class SMTPAuthenticator

java.lang.Object
  |
  +--Authenticator
        |
        +--com.ibm.commerce.emarketing.utils.SMTPAuthenticator

public class SMTPAuthenticator
extends Authenticator

A JavaMail Authenticator object that can be used to authenticate with an SMTP server prior to attempting to send mail through the server.

See Also:
javax.mail.Authenticator, javax.mail.PasswordAuthentication, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
SMTPAuthenticator(java.lang.String account, java.lang.String pwd)
          SMTPAuthenicator constructor.
 
Method Summary
 PasswordAuthentication getPasswordAuthentication()
          Gets a PasswordAuthenication object based on the parameters passed to the contructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
Copyright.
See Also:
Constant Field Values
Constructor Detail

SMTPAuthenticator

public SMTPAuthenticator(java.lang.String account,
                         java.lang.String pwd)
SMTPAuthenicator constructor.
Parameters:
account - the user account name to use
Method Detail

getPasswordAuthentication

public PasswordAuthentication getPasswordAuthentication()
Gets a PasswordAuthenication object based on the parameters passed to the contructor.
Returns:
the created PasswordAuthentication object.