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,AuthorizationAdvisor
public final class PreFilterAuthorizationReactiveMethodInterceptor
extends Object
implements AuthorizationAdvisor
A
MethodInterceptor which filters a reactive method argument by evaluating an
expression from the PreFilter annotation.- Since:
- 5.8
-
Field Summary
Fields inherited from interface org.springframework.aop.Advisor
EMPTY_ADVICEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionPreFilterAuthorizationReactiveMethodInterceptor(MethodSecurityExpressionHandler expressionHandler) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.aopalliance.aop.AdviceintgetOrder()org.springframework.aop.Pointcut@Nullable Objectinvoke(org.aopalliance.intercept.MethodInvocation mi) Filters a reactive method argument by evaluating an expression from thePreFilterannotation.booleanvoidsetOrder(int order) voidsetParameterNameDiscoverer(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer) Sets theParameterNameDiscoverer.voidConfigure pre/post-authorization template resolution
-
Constructor Details
-
PreFilterAuthorizationReactiveMethodInterceptor
public PreFilterAuthorizationReactiveMethodInterceptor() -
PreFilterAuthorizationReactiveMethodInterceptor
public PreFilterAuthorizationReactiveMethodInterceptor(MethodSecurityExpressionHandler expressionHandler) Creates an instance.
-
-
Method Details
-
setTemplateDefaults
Configure pre/post-authorization template resolutionBy default, this value is
null, which indicates that templates should not be resolved.- Parameters:
defaults- - whether to resolve pre/post-authorization templates parameters- Since:
- 6.4
-
setParameterNameDiscoverer
public void setParameterNameDiscoverer(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer) Sets theParameterNameDiscoverer.- Parameters:
parameterNameDiscoverer- theParameterNameDiscovererto use
-
invoke
Filters 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:
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)
-