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 TypeMethodDescriptionboolean
isAuthorized
(HttpRequest request, WebsocketConnection conn) Called when a client connects to the server.
-
Method Details
-
isAuthorized
Called when a client connects to the server.- Parameters:
request
- the http request that initiated the websocketconn
- the websocket connection- Returns:
- true if allowed, false if rejected
- Throws:
Exception
-