org.objectweb.easybeans.security.api
Interface EZBSecurityCurrent

All Known Implementing Classes:
JOnASSecurityCurrent, SecurityCurrent

public interface EZBSecurityCurrent

Interface that describes what a security current should provide, ie : a security context.

Author:
Florent Benoit

Field Summary
static java.lang.String SECURITY_CURRENT_PROPERTY
          Switch property for using other implementation than the default one.
 
Method Summary
 EZBSecurityContext getSecurityContext()
          Gets the current context.
 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.
 

Field Detail

SECURITY_CURRENT_PROPERTY

static final java.lang.String SECURITY_CURRENT_PROPERTY
Switch property for using other implementation than the default one.

See Also:
Constant Field Values
Method Detail

getSecurityContext

EZBSecurityContext getSecurityContext()
Gets the current context.

Returns:
SecurityContext return the Security context associated to the current thread or the JVM

setSecurityContext

void setSecurityContext(EZBSecurityContext securityContext)
Associates the given security context to the current thread.

Parameters:
securityContext - Security context to associate to the current thread.

setGlobalSecurityContext

void setGlobalSecurityContext(EZBSecurityContext securityContext)
Associates the given security context to all threads (JVM).

Parameters:
securityContext - Security context to associate to the JVM