KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > parsec > rfc822 > MultipleAuthentic


1 /*
2  * Created on Dec 20, 2004
3  *
4  * Author Ben Yu
5  */

6 package tests.jfun.parsec.rfc822;
7
8 import javax.naming.AuthenticationException JavaDoc;
9
10 /**
11  * @author Ben Yu
12  *
13  * Dec 20, 2004
14  */

15 public class MultipleAuthentic extends Authentic {
16   private final Mailbox sender;
17   private final Mailbox[] from;
18   
19   /**
20    * @param type
21    * @param single
22    * @param sender
23    * @param from
24    */

25   MultipleAuthentic(String JavaDoc type, final Mailbox sender,
26       final Mailbox[] from) {
27     super(type, false);
28     this.sender = sender;
29     this.from = from;
30   }
31   
32   /**
33    * @return Returns the from.
34    */

35   public Mailbox[] getFrom() {
36     return from;
37   }
38   /**
39    * @return Returns the sender.
40    */

41   public Mailbox getSender() {
42     return sender;
43   }
44 }
45
Popular Tags