Class AuthenticationPayloadInterceptor
java.lang.Object
org.springframework.security.rsocket.authentication.AuthenticationPayloadInterceptor
- All Implemented Interfaces:
- org.springframework.core.Ordered,- PayloadInterceptor
public class AuthenticationPayloadInterceptor
extends Object
implements PayloadInterceptor, org.springframework.core.Ordered
Uses the provided 
ReactiveAuthenticationManager to authenticate a Payload. If
 authentication is successful, then the result is added to
 ReactiveSecurityContextHolder.- Since:
- 5.2
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionAuthenticationPayloadInterceptor(ReactiveAuthenticationManager authenticationManager) Creates a new instance
- 
Method SummaryModifier and TypeMethodDescriptionintgetOrder()reactor.core.publisher.Mono<Void>intercept(PayloadExchange exchange, PayloadInterceptorChain chain) Process the Web request and (optionally) delegate to the nextPayloadInterceptorthrough the givenPayloadInterceptorChain.voidsetAuthenticationConverter(PayloadExchangeAuthenticationConverter authenticationConverter) Sets the convert to be usedvoidsetOrder(int order) 
- 
Constructor Details- 
AuthenticationPayloadInterceptorCreates a new instance- Parameters:
- authenticationManager- the manager to use. Cannot be null
 
 
- 
- 
Method Details- 
getOrderpublic int getOrder()- Specified by:
- getOrderin interface- org.springframework.core.Ordered
 
- 
setOrderpublic void setOrder(int order) 
- 
setAuthenticationConverterpublic void setAuthenticationConverter(PayloadExchangeAuthenticationConverter authenticationConverter) Sets the convert to be used- Parameters:
- authenticationConverter-
 
- 
interceptpublic 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 interface- PayloadInterceptor
- Parameters:
- exchange- the current payload exchange
- chain- provides a way to delegate to the next interceptor
- Returns:
- Mono<Void>to indicate when payload processing is complete
 
 
-