1 package com.knowgate.hipermail; 2 3 import javax.mail.Authenticator ; 4 import javax.mail.PasswordAuthentication ; 5 6 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 } 22 | Popular Tags |