org.codehaus.waffle.action.intercept
Class SecurityMethodInterceptor

java.lang.Object
  extended by org.codehaus.waffle.action.intercept.SecurityMethodInterceptor
All Implemented Interfaces:
MethodInterceptor

public class SecurityMethodInterceptor
extends java.lang.Object
implements MethodInterceptor

This interceptor ensure that only annotated methods are invokable as Actions. Usage of this will help protect your application against malicious attacks.


Constructor Summary
SecurityMethodInterceptor()
           
 
Method Summary
 boolean accept(java.lang.reflect.Method actionMethod)
           
 java.lang.Object intercept(ControllerDefinition controllerDefinition, java.lang.reflect.Method method, InterceptorChain chain, java.lang.Object... arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityMethodInterceptor

public SecurityMethodInterceptor()
Method Detail

accept

public boolean accept(java.lang.reflect.Method actionMethod)
Specified by:
accept in interface MethodInterceptor

intercept

public java.lang.Object intercept(ControllerDefinition controllerDefinition,
                                  java.lang.reflect.Method method,
                                  InterceptorChain chain,
                                  java.lang.Object... arguments)
                           throws java.lang.IllegalAccessException,
                                  java.lang.reflect.InvocationTargetException
Specified by:
intercept in interface MethodInterceptor
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException


Copyright © 2008. All Rights Reserved.