org.bsf.remoting.util.impl
Class JBossPrincipalManager

java.lang.Object
  |
  +--org.bsf.remoting.util.impl.JBossPrincipalManager
All Implemented Interfaces:
PrincipalManager

public class JBossPrincipalManager
extends java.lang.Object
implements PrincipalManager

Author:
Gaetan Zoritchak

Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
JBossPrincipalManager()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Constructor Detail

JBossPrincipalManager

public JBossPrincipalManager()
Method Detail

setThreadPrincipal

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

Specified by:
setThreadPrincipal in interface PrincipalManager

setJVMPrincipal

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

Specified by:
setJVMPrincipal in interface PrincipalManager