org.apache.taglibs.mailer
Class MailAuthenticator
java.lang.Object
|
+--javax.mail.Authenticator
|
+--org.apache.taglibs.mailer.MailAuthenticator
- public class MailAuthenticator
- extends javax.mail.Authenticator
MailAuthenticator - a password authentication class used to access a mail
server that needs authentication
- Version:
- 1.0
- Author:
- Rich Catlett
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 |
MailAuthenticator()
constructor calls the super class constructor |
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
it creates a dialog box to collect the users name and password for a
connection to the mail server |
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 |
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
MailAuthenticator
public MailAuthenticator(java.lang.String user,
java.lang.String password)
- constructor calls the super class constructor
MailAuthenticator
public MailAuthenticator()
- constructor calls the super class constructor
getPasswordAuthentication
protected javax.mail.PasswordAuthentication getPasswordAuthentication()
- overrides the getPasswordAuthentication method in the super class
it creates a dialog box to collect the users name and password for a
connection to the mail server
- Overrides:
getPasswordAuthentication
in class javax.mail.Authenticator
- Returns:
- - PasswordAuthentication object containing the users name and
password
Copyright ? 2000 Apache Software Foundation. All Rights Reserved.