|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.security.propagation.jonas.JOnASSecurityCurrent
public class JOnASSecurityCurrent
Allow to get the JOnAS security context.
Field Summary | |
---|---|
private static java.lang.String |
JONAS_SECURITY_CONTEXT
Name of the JOnAS context class. |
private static java.lang.String |
JONAS_SECURITY_CURRENT
Name of the JOnAS class. |
private static java.lang.Object |
jonasSecurityCurrent
Unique instance of the JOnAS security current object. |
Fields inherited from interface org.objectweb.easybeans.security.api.EZBSecurityCurrent |
---|
SECURITY_CURRENT_PROPERTY |
Constructor Summary | |
---|---|
JOnASSecurityCurrent()
|
Method Summary | |
---|---|
EZBSecurityContext |
getSecurityContext()
Gets the current context. |
private static java.lang.Object |
initCurrent()
Init the current object (if not already done). |
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 final java.lang.String JONAS_SECURITY_CURRENT
private static final java.lang.String JONAS_SECURITY_CONTEXT
private static java.lang.Object jonasSecurityCurrent
Constructor Detail |
---|
public JOnASSecurityCurrent()
Method Detail |
---|
private static java.lang.Object initCurrent()
public EZBSecurityContext getSecurityContext()
getSecurityContext
in interface EZBSecurityCurrent
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 JVM
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |