org.objectweb.easybeans.security.interceptors
Class RunAsAccessInterceptor

java.lang.Object
  extended by org.objectweb.easybeans.security.interceptors.RunAsAccessInterceptor
All Implemented Interfaces:
EasyBeansInterceptor

public class RunAsAccessInterceptor
extends java.lang.Object
implements EasyBeansInterceptor

Push run-as subject for new calls.

Author:
Florent Benoit

Constructor Summary
RunAsAccessInterceptor()
           
 
Method Summary
 java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
          Adds run-as role before invoking next methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunAsAccessInterceptor

public RunAsAccessInterceptor()
Method Detail

intercept

public java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
                           throws java.lang.Exception
Adds run-as role before invoking next methods.

Specified by:
intercept in interface EasyBeansInterceptor
Parameters:
invocationContext - context with useful attributes on the current invocation
Returns:
result of the next invocation (to chain interceptors)
Throws:
java.lang.Exception - if interceptor fails