Class AnonymousPayloadInterceptor

    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Detail

      • AnonymousPayloadInterceptor

        public AnonymousPayloadInterceptor​(java.lang.String key)
        Creates a filter with a principal named "anonymousUser" and the single authority "ROLE_ANONYMOUS".
        Parameters:
        key - the key to identify tokens created by this filter
      • AnonymousPayloadInterceptor

        public AnonymousPayloadInterceptor​(java.lang.String key,
                                           java.lang.Object principal,
                                           java.util.List<GrantedAuthority> authorities)
        Parameters:
        key - key the key to identify tokens created by this filter
        principal - the principal which will be used to represent anonymous users
        authorities - the authority list for anonymous users
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.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 next PayloadInterceptor through the given PayloadInterceptorChain.
        Specified by:
        intercept in 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