public class AnonymousPayloadInterceptor extends java.lang.Object implements PayloadInterceptor, org.springframework.core.Ordered
ReactiveSecurityContextHolder is empty populates an
AnonymousAuthenticationToken| Constructor and Description |
|---|
AnonymousPayloadInterceptor(java.lang.String key)
Creates a filter with a principal named "anonymousUser" and the single authority
"ROLE_ANONYMOUS".
|
AnonymousPayloadInterceptor(java.lang.String key,
java.lang.Object principal,
java.util.List<GrantedAuthority> authorities) |
| 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 |
setOrder(int order) |
public AnonymousPayloadInterceptor(java.lang.String key)
key - the key to identify tokens created by this filterpublic AnonymousPayloadInterceptor(java.lang.String key,
java.lang.Object principal,
java.util.List<GrantedAuthority> authorities)
key - key the key to identify tokens created by this filterprincipal - the principal which will be used to represent anonymous usersauthorities - the authority list for anonymous userspublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
public reactor.core.publisher.Mono<java.lang.Void> intercept(PayloadExchange exchange, PayloadInterceptorChain chain)
PayloadInterceptorPayloadInterceptor through the given PayloadInterceptorChain.intercept in interface PayloadInterceptorexchange - the current payload exchangechain - provides a way to delegate to the next interceptorMono<Void> to indicate when payload processing is complete