Class PreFilterAuthorizationReactiveMethodInterceptor
- java.lang.Object
-
- org.springframework.security.authorization.method.PreFilterAuthorizationReactiveMethodInterceptor
-
- 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 PreFilterAuthorizationReactiveMethodInterceptor extends java.lang.Object implements org.springframework.core.Ordered, org.aopalliance.intercept.MethodInterceptor, org.springframework.aop.PointcutAdvisor, org.springframework.aop.framework.AopInfrastructureBeanAMethodInterceptorwhich filters a reactive method argument by evaluating an expression from thePreFilterannotation.- Since:
- 5.8
-
-
Constructor Summary
Constructors Constructor Description PreFilterAuthorizationReactiveMethodInterceptor()PreFilterAuthorizationReactiveMethodInterceptor(MethodSecurityExpressionHandler expressionHandler)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.aopalliance.aop.AdvicegetAdvice()intgetOrder()org.springframework.aop.PointcutgetPointcut()java.lang.Objectinvoke(org.aopalliance.intercept.MethodInvocation mi)Filters a reactive method argument by evaluating an expression from thePreFilterannotation.booleanisPerInstance()voidsetOrder(int order)voidsetParameterNameDiscoverer(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)Sets theParameterNameDiscoverer.
-
-
-
Constructor Detail
-
PreFilterAuthorizationReactiveMethodInterceptor
public PreFilterAuthorizationReactiveMethodInterceptor()
-
PreFilterAuthorizationReactiveMethodInterceptor
public PreFilterAuthorizationReactiveMethodInterceptor(MethodSecurityExpressionHandler expressionHandler)
Creates an instance.
-
-
Method Detail
-
setParameterNameDiscoverer
public void setParameterNameDiscoverer(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)
Sets theParameterNameDiscoverer.- Parameters:
parameterNameDiscoverer- theParameterNameDiscovererto use
-
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi) throws java.lang.ThrowableFilters a reactive method argument by evaluating an expression from thePreFilterannotation.- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Parameters:
mi- theMethodInvocationto use- Returns:
- the
Publisherto use - Throws:
java.lang.Throwable
-
getPointcut
public org.springframework.aop.Pointcut getPointcut()
- Specified by:
getPointcutin interfaceorg.springframework.aop.PointcutAdvisor
-
getAdvice
public org.aopalliance.aop.Advice getAdvice()
- Specified by:
getAdvicein interfaceorg.springframework.aop.Advisor
-
isPerInstance
public boolean isPerInstance()
- Specified by:
isPerInstancein interfaceorg.springframework.aop.Advisor
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
-