package ar.com.AmberSoft.util;
import javax.mail.PasswordAuthentication;
public class Authenticator extends javax.mail.Authenticator {
private String username;
private String password;
public Authenticator(String username, String password)
{
this.username = username;
this.password = password;
}
public PasswordAuthentication getPasswordAuthentication()
{
return new PasswordAuthentication(username, password);
}
}