public class SecurityContextAssociation extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
SecurityContextAssociation() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final String SECURITYCONTEXT_THREADLOCAL
public static boolean isClient()
public static void setClient()
public static void setSecurityContext(SecurityContext sc)
sc - public static SecurityContext getSecurityContext()
public static void clearSecurityContext()
Copyright © 2013 JBoss Inc.. All Rights Reserved.