com.ibm.commerce.emarketing.utils

Class SMTPAuthenticator

  • java.lang.Object
    • javax.mail.Authenticator
      • com.ibm.commerce.emarketing.utils.SMTPAuthenticator


  • public class SMTPAuthenticator
    extends javax.mail.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:
    Authenticator, PasswordAuthentication
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SMTPAuthenticator(java.lang.String account, java.lang.String pwd)
      SMTPAuthenicator constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      javax.mail.PasswordAuthentication getPasswordAuthentication()
      Gets a PasswordAuthenication object based on the parameters passed to the contructor.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • SMTPAuthenticator

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

      • getPasswordAuthentication

        public javax.mail.PasswordAuthentication getPasswordAuthentication()
        Gets a PasswordAuthenication object based on the parameters passed to the contructor.
        Overrides:
        getPasswordAuthentication in class javax.mail.Authenticator
        Returns:
        The created PasswordAuthentication object.