org.bsf.remoting.util
Interface PrincipalManager

All Known Implementing Classes:
JBossPrincipalManager

public interface PrincipalManager

Used to set the principal. The different implementation will depend on the server implementation.

Author:
Gaetan Zoritchak

Method Summary
 void setJVMPrincipal(java.lang.String login, java.lang.String password)
          The principal is set only one time for all the thread created in the JVM.
 void setThreadPrincipal(java.lang.String login, java.lang.String passWord)
          The principal is set only for the current thread.
 

Method Detail

setThreadPrincipal

public void setThreadPrincipal(java.lang.String login,
                               java.lang.String passWord)
The principal is set only for the current thread. Normally used in a web server where each thread can represent a different user.


setJVMPrincipal

public void setJVMPrincipal(java.lang.String login,
                            java.lang.String password)
The principal is set only one time for all the thread created in the JVM.