www.pudn.com > sendmail.rar > PopupAuthenticator.java


/* 
 * Created on 2006-1-26 
 *  
 * TODO To change the template for this generated file go to 
 * Window - Preferences - Java - Code Style - Code Templates 
 */ 
package com.sendmail; 
 
 
/** 
 * 

Title:

*

Description:

*

Copyright: Copyright (c) 2006

*

Company:

* @author not attributable * @version 1.0 */ /* * PopupAuthenticator.java * */ import javax.mail.*; /** * * @author Administrator */ public class PopupAuthenticator extends Authenticator { protected String username; protected String password; public PopupAuthenticator() { } public PopupAuthenticator(String user, String pwd) { this.username = user; this.password = pwd; } /** Creates a new instance of PopupAuthenticator */ public PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, password); } }