Class WebSocketHandshakeAuthJwtInterceptor

  • All Implemented Interfaces:
    org.springframework.web.socket.server.HandshakeInterceptor

    public class WebSocketHandshakeAuthJwtInterceptor
    extends Object
    implements org.springframework.web.socket.server.HandshakeInterceptor
    • Constructor Detail

      • WebSocketHandshakeAuthJwtInterceptor

        public WebSocketHandshakeAuthJwtInterceptor()
    • Method Detail

      • beforeHandshake

        public boolean beforeHandshake​(org.springframework.http.server.ServerHttpRequest request,
                                       org.springframework.http.server.ServerHttpResponse response,
                                       org.springframework.web.socket.WebSocketHandler wsHandler,
                                       Map<String,​Object> attributes)
                                throws Exception
        Specified by:
        beforeHandshake in interface org.springframework.web.socket.server.HandshakeInterceptor
        Throws:
        Exception
      • afterHandshake

        public void afterHandshake​(org.springframework.http.server.ServerHttpRequest request,
                                   org.springframework.http.server.ServerHttpResponse response,
                                   org.springframework.web.socket.WebSocketHandler wsHandler,
                                   Exception exception)
        Specified by:
        afterHandshake in interface org.springframework.web.socket.server.HandshakeInterceptor