Package smtphandler

Source Code of smtphandler.UsernamePasswordAuthenticator

/*
*
*
*/
package smtphandler;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

class UsernamePasswordAuthenticator extends Authenticator
{
  private PasswordAuthentication auth = null;
 
  public UsernamePasswordAuthenticator(String user, String password)
  {
    auth = new PasswordAuthentication(user, password);
  }
 
  public PasswordAuthentication getPasswordAuthentication()
  {
    return auth;
  }
 

}
TOP

Related Classes of smtphandler.UsernamePasswordAuthenticator

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.