2 * Copyright (c) 2005 UPS_SCS NL
5 package org.wamblee.crawler.kiss;
7 import javax.mail.Authenticator;
8 import javax.mail.PasswordAuthentication;
10 public class UsernamePasswordAuthenticator extends Authenticator {
12 private String _username;
13 private String _password;
15 public UsernamePasswordAuthenticator(String aUsername, String aPassword) {
16 _username = aUsername;
17 _password = aPassword;
21 protected PasswordAuthentication getPasswordAuthentication( ) {
22 if ( _username == null ) {
25 return new PasswordAuthentication(_username, _password);