org.ow2.jonas.ejb.easybeans
Class JOnASSecurityCurrent
java.lang.Object
org.ow2.jonas.ejb.easybeans.JOnASSecurityCurrent
- All Implemented Interfaces:
- org.ow2.easybeans.security.api.EZBSecurityCurrent
public class JOnASSecurityCurrent
- extends Object
- implements org.ow2.easybeans.security.api.EZBSecurityCurrent
|
Method Summary |
org.ow2.easybeans.security.api.EZBSecurityContext |
getSecurityContext()
Gets the current context. |
void |
setGlobalSecurityContext(org.ow2.easybeans.security.api.EZBSecurityContext securityContext)
Associates the given security context to all threads (JVM). |
void |
setSecurityContext(org.ow2.easybeans.security.api.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 |
JOnASSecurityCurrent
public JOnASSecurityCurrent()
getSecurityContext
public org.ow2.easybeans.security.api.EZBSecurityContext getSecurityContext()
- Gets the current context.
- Specified by:
getSecurityContext in interface org.ow2.easybeans.security.api.EZBSecurityCurrent
- Returns:
- SecurityContext return the Security context associated to the
current thread or the JVM
setSecurityContext
public void setSecurityContext(org.ow2.easybeans.security.api.EZBSecurityContext securityContext)
- Associates the given security context to the current thread.
- Specified by:
setSecurityContext in interface org.ow2.easybeans.security.api.EZBSecurityCurrent
- Parameters:
securityContext - Security context to associate to the current thread.
setGlobalSecurityContext
public void setGlobalSecurityContext(org.ow2.easybeans.security.api.EZBSecurityContext securityContext)
- Associates the given security context to all threads (JVM).
- Specified by:
setGlobalSecurityContext in interface org.ow2.easybeans.security.api.EZBSecurityCurrent
- Parameters:
securityContext - Security context to associate to the JVM
Copyright © 2008 OW2 Consortium. All Rights Reserved.