Class PreFilterAuthorizationMethodInterceptor
- java.lang.Object
-
- org.springframework.security.authorization.method.PreFilterAuthorizationMethodInterceptor
-
- All Implemented Interfaces:
org.aopalliance.aop.Advice
,org.aopalliance.intercept.Interceptor
,org.aopalliance.intercept.MethodInterceptor
,org.springframework.aop.Advisor
,org.springframework.aop.framework.AopInfrastructureBean
,org.springframework.aop.PointcutAdvisor
,org.springframework.core.Ordered
public final class PreFilterAuthorizationMethodInterceptor extends java.lang.Object implements org.springframework.core.Ordered, org.aopalliance.intercept.MethodInterceptor, org.springframework.aop.PointcutAdvisor, org.springframework.aop.framework.AopInfrastructureBean
AMethodInterceptor
which filters a method argument by evaluating an expression from thePreFilter
annotation.- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description PreFilterAuthorizationMethodInterceptor()
Creates aPreFilterAuthorizationMethodInterceptor
using the provided parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.aopalliance.aop.Advice
getAdvice()
int
getOrder()
org.springframework.aop.Pointcut
getPointcut()
java.lang.Object
invoke(org.aopalliance.intercept.MethodInvocation mi)
Filter the method argument specified in thePreFilter
annotation thatMethodInvocation
specifies.boolean
isPerInstance()
void
setExpressionHandler(MethodSecurityExpressionHandler expressionHandler)
Use thisMethodSecurityExpressionHandler
void
setOrder(int order)
-
-
-
Constructor Detail
-
PreFilterAuthorizationMethodInterceptor
public PreFilterAuthorizationMethodInterceptor()
Creates aPreFilterAuthorizationMethodInterceptor
using the provided parameters
-
-
Method Detail
-
setExpressionHandler
public void setExpressionHandler(MethodSecurityExpressionHandler expressionHandler)
Use thisMethodSecurityExpressionHandler
- Parameters:
expressionHandler
- theMethodSecurityExpressionHandler
to use
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
getPointcut
public org.springframework.aop.Pointcut getPointcut()
- Specified by:
getPointcut
in interfaceorg.springframework.aop.PointcutAdvisor
-
getAdvice
public org.aopalliance.aop.Advice getAdvice()
- Specified by:
getAdvice
in interfaceorg.springframework.aop.Advisor
-
isPerInstance
public boolean isPerInstance()
- Specified by:
isPerInstance
in interfaceorg.springframework.aop.Advisor
-
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi) throws java.lang.Throwable
Filter the method argument specified in thePreFilter
annotation thatMethodInvocation
specifies.- Specified by:
invoke
in interfaceorg.aopalliance.intercept.MethodInterceptor
- Parameters:
mi
- theMethodInvocation
to check- Throws:
java.lang.Throwable
-
-