org.objectweb.security.context
Class SecurityCurrent

java.lang.Object
  |
  +--org.objectweb.security.context.SecurityCurrent

public class SecurityCurrent
extends java.lang.Object

For handling the association SecurityContext/ Thread


Constructor Summary
SecurityCurrent()
           
 
Method Summary
static SecurityCurrent getCurrent()
          Method getCurrent
 SecurityContext getSecurityContext()
          Method getSecurityContext
 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:
SecurityContext - Security context to associate to the current thread

getSecurityContext

public SecurityContext getSecurityContext()
Method getSecurityContext
Returns:
SecurityContext return the Security context associated to the current thread