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 |
---|---|
String |
authorize(String channelName,
String socketId)
Called when a channel is to be authenticated.
|
String authorize(String channelName, 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.Copyright © 2017 Pusher. All rights reserved.