KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > bsf > remoting > util > PrincipalManager


1 /**
2  * @licence.bsf@
3  */

4 package org.bsf.remoting.util;
5
6 /**
7  * Used to set the principal. The different implementation will
8  * depend on the server implementation.
9  * @author Gaetan Zoritchak
10  * @version@
11  */

12 public interface PrincipalManager {
13
14     /**
15      * The principal is set only for the current thread.
16      * Normally used in a web server where each thread can
17      * represent a different user.
18      */

19     void setThreadPrincipal(String JavaDoc login, String JavaDoc passWord);
20
21     /**
22      * The principal is set only one time for all the thread
23      * created in the JVM.
24      */

25     void setJVMPrincipal (String JavaDoc login, String JavaDoc password);
26
27 }
28
Popular Tags