public final class CsrfChannelInterceptor
extends org.springframework.messaging.support.ChannelInterceptorAdapter
ChannelInterceptorAdapter
that validates that a valid CSRF is included in the
header of any SimpMessageType.CONNECT
message. The expected CsrfToken
is populated by CsrfTokenHandshakeInterceptor.Constructor and Description |
---|
CsrfChannelInterceptor() |
Modifier and Type | Method and Description |
---|---|
org.springframework.messaging.Message<?> |
preSend(org.springframework.messaging.Message<?> message,
org.springframework.messaging.MessageChannel channel) |
public org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
preSend
in interface org.springframework.messaging.support.ChannelInterceptor
preSend
in class org.springframework.messaging.support.ChannelInterceptorAdapter