|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.security.propagation.context.SecurityCurrent
public class SecurityCurrent
Manages the current security context associated to the current thread.
Field Summary | |
---|---|
private static EZBSecurityContext |
DEFAULT_CTX
Default security context. |
private static EZBSecurityContext |
globalContext
Static Security Context that is applied on all threads (used for heavy client). |
private static java.lang.InheritableThreadLocal<EZBSecurityContext> |
threadLocal
Inherited Local thread used to keep the security context. |
private static EZBSecurityCurrent |
unique
Unique instance of this current object. |
Fields inherited from interface org.objectweb.easybeans.security.api.EZBSecurityCurrent |
---|
SECURITY_CURRENT_PROPERTY |
Constructor Summary | |
---|---|
SecurityCurrent()
|
Method Summary | |
---|---|
static EZBSecurityCurrent |
getCurrent()
Return the unique instance of this object. |
EZBSecurityContext |
getSecurityContext()
Gets the current context. |
private static EZBSecurityCurrent |
initCurrent()
Build the unique instance of the security current. It can use JOnAS current object. |
void |
setGlobalSecurityContext(EZBSecurityContext securityContext)
Associates the given security context to all threads (JVM). |
void |
setSecurityContext(EZBSecurityContext securityContext)
Associates the given security context to the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.lang.InheritableThreadLocal<EZBSecurityContext> threadLocal
private static EZBSecurityContext globalContext
private static final EZBSecurityContext DEFAULT_CTX
private static EZBSecurityCurrent unique
Constructor Detail |
---|
public SecurityCurrent()
Method Detail |
---|
private static EZBSecurityCurrent initCurrent()
public static EZBSecurityCurrent getCurrent()
public void setSecurityContext(EZBSecurityContext securityContext)
setSecurityContext
in interface EZBSecurityCurrent
securityContext
- Security context to associate to the current
thread.public void setGlobalSecurityContext(EZBSecurityContext securityContext)
setGlobalSecurityContext
in interface EZBSecurityCurrent
securityContext
- Security context to associate to the JVMpublic EZBSecurityContext getSecurityContext()
getSecurityContext
in interface EZBSecurityCurrent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |