public interface Authorizer
Private and
presence channels need to
be authorized. This interface provides an authorize(java.lang.String, java.lang.String) as a mechanism
for doing this.
See the HttpAuthorizer as an
example.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
authorize(java.lang.String channelName,
java.lang.String socketId)
Called when a channel is to be authenticated.
|
java.lang.String authorize(java.lang.String channelName, java.lang.String socketId) throws AuthorizationFailureException
channelName - The name of the channel to be authenticated.socketId - A unique socket connection ID to be used with the
authentication. This uniquely identifies the connection that
the subscription is being authenticated for.AuthorizationFailureException - if the authentication fails.