Class PrePostAdviceReactiveMethodInterceptor
java.lang.Object
org.springframework.security.access.prepost.PrePostAdviceReactiveMethodInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice
,org.aopalliance.intercept.Interceptor
,org.aopalliance.intercept.MethodInterceptor
public class PrePostAdviceReactiveMethodInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor
A
MethodInterceptor
that supports PreAuthorize
and
PostAuthorize
for methods that return Mono
or Flux
and Kotlin
coroutine functions.- Since:
- 5.0
-
Constructor Summary
ConstructorDescriptionPrePostAdviceReactiveMethodInterceptor
(MethodSecurityMetadataSource attributeSource, PreInvocationAuthorizationAdvice preInvocationAdvice, PostInvocationAuthorizationAdvice postInvocationAdvice) Creates a new instance -
Method Summary
-
Constructor Details
-
PrePostAdviceReactiveMethodInterceptor
public PrePostAdviceReactiveMethodInterceptor(MethodSecurityMetadataSource attributeSource, PreInvocationAuthorizationAdvice preInvocationAdvice, PostInvocationAuthorizationAdvice postInvocationAdvice) Creates a new instance- Parameters:
attributeSource
- theMethodSecurityMetadataSource
to usepreInvocationAdvice
- thePreInvocationAuthorizationAdvice
to usepostInvocationAdvice
- thePostInvocationAuthorizationAdvice
to use
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceorg.aopalliance.intercept.MethodInterceptor
-