KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > message > impl > ExoAuthenticator


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.communication.message.impl;
6
7 import javax.mail.Authenticator JavaDoc;
8 import javax.mail.PasswordAuthentication JavaDoc;
9
10 /**
11  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
12  * @since Sep 12, 2004
13  * @version $Id: ExoAuthenticator.java,v 1.1 2004/09/12 22:48:20 tuan08 Exp $
14  */

15 public class ExoAuthenticator extends Authenticator JavaDoc{
16   private PasswordAuthentication JavaDoc authentication_ ;
17   
18   public ExoAuthenticator(String JavaDoc userName , String JavaDoc password) {
19     authentication_ = new PasswordAuthentication JavaDoc(userName, password) ;
20   }
21   
22   protected PasswordAuthentication JavaDoc getPasswordAuthentication() {
23     return authentication_ ;
24   }
25 }
Popular Tags