1 5 package org.exoplatform.services.communication.message.impl; 6 7 import javax.mail.Authenticator ; 8 import javax.mail.PasswordAuthentication ; 9 10 15 public class ExoAuthenticator extends Authenticator { 16 private PasswordAuthentication authentication_ ; 17 18 public ExoAuthenticator(String userName , String password) { 19 authentication_ = new PasswordAuthentication (userName, password) ; 20 } 21 22 protected PasswordAuthentication getPasswordAuthentication() { 23 return authentication_ ; 24 } 25 } | Popular Tags |