01: package com.knowgate.hipermail;
02:
03: import javax.mail.Authenticator;
04: import javax.mail.PasswordAuthentication;
05:
06: /**
07: * @author Sergio Montoro Ten
08: * @version 1.0
09: */
10:
11: public class SilentAuthenticator extends Authenticator {
12: private PasswordAuthentication oPwdAuth;
13:
14: public SilentAuthenticator(String sUserName, String sAuthStr) {
15: oPwdAuth = new PasswordAuthentication(sUserName, sAuthStr);
16: }
17:
18: protected PasswordAuthentication getPasswordAuthentication() {
19: return oPwdAuth;
20: }
21: }
|