Interface WebsocketConnectionAuthorizer


public interface WebsocketConnectionAuthorizer
Interface that processes websocket connect events and is able to close a connection if it doesn't have correct authentication.
Since:
1.0
Version:
2022-08-30
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Called when a client connects to the server.
  • Method Details

    • isAuthorized

      boolean isAuthorized(HttpRequest request, WebsocketConnection conn) throws Exception
      Called when a client connects to the server.
      Parameters:
      request - the http request that initiated the websocket
      conn - the websocket connection
      Returns:
      true if allowed, false if rejected
      Throws:
      Exception