Class AuthorizationPayloadInterceptor
- java.lang.Object
-
- org.springframework.security.rsocket.authorization.AuthorizationPayloadInterceptor
-
- All Implemented Interfaces:
org.springframework.core.Ordered
,PayloadInterceptor
public class AuthorizationPayloadInterceptor extends java.lang.Object implements PayloadInterceptor, org.springframework.core.Ordered
Provides authorization of thePayloadExchange
.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description AuthorizationPayloadInterceptor(ReactiveAuthorizationManager<PayloadExchange> authorizationManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
reactor.core.publisher.Mono<java.lang.Void>
intercept(PayloadExchange exchange, PayloadInterceptorChain chain)
Process the Web request and (optionally) delegate to the nextPayloadInterceptor
through the givenPayloadInterceptorChain
.void
setOrder(int order)
-
-
-
Constructor Detail
-
AuthorizationPayloadInterceptor
public AuthorizationPayloadInterceptor(ReactiveAuthorizationManager<PayloadExchange> authorizationManager)
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
intercept
public reactor.core.publisher.Mono<java.lang.Void> intercept(PayloadExchange exchange, PayloadInterceptorChain chain)
Description copied from interface:PayloadInterceptor
Process the Web request and (optionally) delegate to the nextPayloadInterceptor
through the givenPayloadInterceptorChain
.- Specified by:
intercept
in interfacePayloadInterceptor
- Parameters:
exchange
- the current payload exchangechain
- provides a way to delegate to the next interceptor- Returns:
Mono<Void>
to indicate when payload processing is complete
-
-