org.jboss.security
Class SecurityContextAssociation

java.lang.Object
  extended by org.jboss.security.SecurityContextAssociation

public class SecurityContextAssociation
extends Object

Security Context association in a threadlocal

Since:
Dec 27, 2006
Version:
$Revision$
Author:
Anil Saldhana

Field Summary
static String SECURITYCONTEXT_THREADLOCAL
          Flag to indicate whether threads that are spawned inherit the security context from parent Set this to false if you do not want inheritance.
 
Constructor Summary
SecurityContextAssociation()
           
 
Method Summary
static void clearSecurityContext()
          Clear the current security context
static SecurityContext getSecurityContext()
          Get a security context
static boolean isClient()
          Indicates whether we are on the client side
static void setClient()
          Set the VM-wide client side usage
static void setSecurityContext(SecurityContext sc)
          Set a security context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECURITYCONTEXT_THREADLOCAL

public static final String SECURITYCONTEXT_THREADLOCAL
Flag to indicate whether threads that are spawned inherit the security context from parent Set this to false if you do not want inheritance. By default the context is inherited.

See Also:
Constant Field Values
Constructor Detail

SecurityContextAssociation

public SecurityContextAssociation()
Method Detail

isClient

public static boolean isClient()
Indicates whether we are on the client side

Returns:

setClient

public static void setClient()
Set the VM-wide client side usage


setSecurityContext

public static void setSecurityContext(SecurityContext sc)
Set a security context

Parameters:
sc -

getSecurityContext

public static SecurityContext getSecurityContext()
Get a security context

Returns:

clearSecurityContext

public static void clearSecurityContext()
Clear the current security context



Copyright © 2009 JBoss Inc.. All Rights Reserved.