Class CsrfChannelInterceptor

  • All Implemented Interfaces:

    public final class CsrfChannelInterceptor
    ChannelInterceptorAdapter that validates that a valid CSRF is included in the header of any SimpMessageType.CONNECT message. The expected CsrfToken is populated by CsrfTokenHandshakeInterceptor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.messaging.Message<?> preSend​(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)  
      • Methods inherited from class

        afterReceiveCompletion, afterSendCompletion, postReceive, postSend, preReceive
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CsrfChannelInterceptor

        public CsrfChannelInterceptor()
    • Method Detail

      • preSend

        public org.springframework.messaging.Message<?> preSend​(org.springframework.messaging.Message<?> message,
                                                                org.springframework.messaging.MessageChannel channel)
        Specified by:
        preSend in interface
        preSend in class