org.ow2.jonas.ejb.easybeans
Class JOnASSecurityCurrent

java.lang.Object
  extended by 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

Wrapper for the Security of JOnAS.

Author:
Florent BENOIT

Constructor Summary
JOnASSecurityCurrent()
           
 
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
 

Constructor Detail

JOnASSecurityCurrent

public JOnASSecurityCurrent()
Method Detail

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).

Parameters:
securityContext - Security context to associate to the JVM


Copyright © 2010 OW2 Consortium. All Rights Reserved.