org.ow2.jonas.lib.security.context
Class SecurityCurrent

java.lang.Object
  extended by org.ow2.jonas.lib.security.context.SecurityCurrent

public class SecurityCurrent
extends Object

For handling the association SecurityContext/ Thread

Author:
Jeff Mesnil

Constructor Summary
SecurityCurrent()
           
 
Method Summary
static SecurityCurrent getCurrent()
          Method getCurrent
 SecurityContext getSecurityContext()
          Method getSecurityContext
 void setGlobalSecurityContext(SecurityContext ctx)
          Method setSecurityContext used for client container
 void setSecurityContext(SecurityContext ctx)
          Method setSecurityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityCurrent

public SecurityCurrent()
Method Detail

getCurrent

public static SecurityCurrent getCurrent()
Method getCurrent

Returns:
SecurityCurrent return the current

setSecurityContext

public void setSecurityContext(SecurityContext ctx)
Method setSecurityContext

Parameters:
ctx - Security context to associate to the current thread

setGlobalSecurityContext

public void setGlobalSecurityContext(SecurityContext ctx)
Method setSecurityContext used for client container

Parameters:
ctx - Security context to associate to the JVM

getSecurityContext

public SecurityContext getSecurityContext()
Method getSecurityContext

Returns:
SecurityContext return the Security context associated to the current thread


Copyright © 2010 OW2 Consortium. All Rights Reserved.