com.pusher.client.Authorizer.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pusher-java-client Show documentation
Show all versions of pusher-java-client Show documentation
This is a Java client library for Pusher, targeted at core Java and Android.
Authorizer (Pusher Java Websocket API)
com.pusher.client
Interface Authorizer
-
- All Known Implementing Classes:
- HttpAuthorizer
public interface Authorizer
Subscriptions to 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
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.
-
-
Method Detail
-
authorize
java.lang.String authorize(java.lang.String channelName,
java.lang.String socketId)
throws AuthorizationFailureException
Called when a channel is to be authenticated.
- Parameters:
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.
- Returns:
- An authentication token.
- Throws:
AuthorizationFailureException
- if the authentication fails.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy