org.mentawai.mail
Class DefaultAuthenticator
java.lang.Object
javax.mail.Authenticator
org.mentawai.mail.DefaultAuthenticator
public class DefaultAuthenticator
- extends javax.mail.Authenticator
This is a very simple authentication object that can be used for any
transport needing basic userName and password type authentication.
- Version:
- $Id: DefaultAuthenticator.java,v 1.1 2006/03/02 17:11:41 soliveira Exp $
- Author:
- Quinton McCombs
|
Method Summary |
protected javax.mail.PasswordAuthentication |
getPasswordAuthentication()
Gets the authentication object that will be used to login 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 |
DefaultAuthenticator
public DefaultAuthenticator(String userName,
String password)
- Default constructor
- Parameters:
userName - user name to use when authentication is requestedpassword - password to use when authentication is requested
getPasswordAuthentication
protected javax.mail.PasswordAuthentication getPasswordAuthentication()
- Gets the authentication object that will be used to login to the mail
server.
- Overrides:
getPasswordAuthentication in class javax.mail.Authenticator
- Returns:
- A
PasswordAuthentication object containing the
login information.
Copyright © 2012. All Rights Reserved.