public class AuthenticationPayloadInterceptor extends java.lang.Object implements PayloadInterceptor, org.springframework.core.Ordered
ReactiveAuthenticationManager
to authenticate a Payload. If
authentication is successful, then the result is added to
ReactiveSecurityContextHolder
.Constructor and Description |
---|
AuthenticationPayloadInterceptor(ReactiveAuthenticationManager authenticationManager)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
reactor.core.publisher.Mono<java.lang.Void> |
intercept(PayloadExchange exchange,
PayloadInterceptorChain chain)
Process the Web request and (optionally) delegate to the next
PayloadInterceptor through the given PayloadInterceptorChain . |
void |
setAuthenticationConverter(PayloadExchangeAuthenticationConverter authenticationConverter)
Sets the convert to be used
|
void |
setOrder(int order) |
public AuthenticationPayloadInterceptor(ReactiveAuthenticationManager authenticationManager)
authenticationManager
- the manager to use. Cannot be nullpublic int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)
public void setAuthenticationConverter(PayloadExchangeAuthenticationConverter authenticationConverter)
authenticationConverter
- public reactor.core.publisher.Mono<java.lang.Void> intercept(PayloadExchange exchange, PayloadInterceptorChain chain)
PayloadInterceptor
PayloadInterceptor
through the given PayloadInterceptorChain
.intercept
in interface PayloadInterceptor
exchange
- the current payload exchangechain
- provides a way to delegate to the next interceptorMono<Void>
to indicate when payload processing is complete