Class ExpressionBasedPreInvocationAdvice
java.lang.Object
org.springframework.security.access.expression.method.ExpressionBasedPreInvocationAdvice
- All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean
,PreInvocationAuthorizationAdvice
public class ExpressionBasedPreInvocationAdvice
extends Object
implements PreInvocationAuthorizationAdvice
Method pre-invocation handling based on expressions.
- Since:
- 3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
before
(Authentication authentication, org.aopalliance.intercept.MethodInvocation mi, PreInvocationAttribute attr) The "before" advice which should be executed to perform any filtering necessary and to decide whether the method call is authorised.void
setExpressionHandler
(MethodSecurityExpressionHandler expressionHandler)
-
Constructor Details
-
ExpressionBasedPreInvocationAdvice
public ExpressionBasedPreInvocationAdvice()
-
-
Method Details
-
before
public boolean before(Authentication authentication, org.aopalliance.intercept.MethodInvocation mi, PreInvocationAttribute attr) Description copied from interface:PreInvocationAuthorizationAdvice
The "before" advice which should be executed to perform any filtering necessary and to decide whether the method call is authorised.- Specified by:
before
in interfacePreInvocationAuthorizationAdvice
- Parameters:
authentication
- the information on the principal on whose account the decision should be mademi
- the method invocation being attemptedattr
- the attribute built from the @PreFilter and @PostFilter annotations.- Returns:
- true if authorised, false otherwise
-
setExpressionHandler
-