Class AuthorizationPayloadInterceptor
java.lang.Object
org.springframework.security.rsocket.authorization.AuthorizationPayloadInterceptor
- All Implemented Interfaces:
org.springframework.core.Ordered,PayloadInterceptor
public class AuthorizationPayloadInterceptor
extends Object
implements PayloadInterceptor, org.springframework.core.Ordered
Provides authorization of the
PayloadExchange.- Since:
- 5.2
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationPayloadInterceptor(ReactiveAuthorizationManager<PayloadExchange> authorizationManager) -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()reactor.core.publisher.Mono<Void>intercept(PayloadExchange exchange, PayloadInterceptorChain chain) Process the Web request and (optionally) delegate to the nextPayloadInterceptorthrough the givenPayloadInterceptorChain.voidsetOrder(int order)
-
Constructor Details
-
AuthorizationPayloadInterceptor
public AuthorizationPayloadInterceptor(ReactiveAuthorizationManager<PayloadExchange> authorizationManager)
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
intercept
public reactor.core.publisher.Mono<Void> intercept(PayloadExchange exchange, PayloadInterceptorChain chain) Description copied from interface:PayloadInterceptorProcess the Web request and (optionally) delegate to the nextPayloadInterceptorthrough the givenPayloadInterceptorChain.- Specified by:
interceptin 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
-