Class QEAuthenticator

java.lang.Object
  extended by javax.mail.Authenticator
      extended by QEAuthenticator

public class QEAuthenticator
extends javax.mail.Authenticator

Used for host authentication (username & password) during SMTP transport

Author:
Michael Latham

Field Summary
private  java.lang.String m_pwd
          password
private  java.lang.String m_usr
          username
 
Constructor Summary
QEAuthenticator()
          Default constructor, sets username and password to blanks.
QEAuthenticator(java.lang.String usr, java.lang.String pwd)
          Constructor to set username and password
 
Method Summary
protected  javax.mail.PasswordAuthentication getPasswordAuthentication()
          Retrieved the password authentication object, used during transport.
 
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_usr

private java.lang.String m_usr
username


m_pwd

private java.lang.String m_pwd
password

Constructor Detail

QEAuthenticator

public QEAuthenticator()
Default constructor, sets username and password to blanks.


QEAuthenticator

public QEAuthenticator(java.lang.String usr,
                       java.lang.String pwd)
Constructor to set username and password

Parameters:
usr - Username to access outgoing email server
pwd - Password to access outgoing email server
Method Detail

getPasswordAuthentication

protected javax.mail.PasswordAuthentication getPasswordAuthentication()
Retrieved the password authentication object, used during transport.

Overrides:
getPasswordAuthentication in class javax.mail.Authenticator
Returns:
password authentication object, used during transport.