All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pusher.client.Authorizer Maven / Gradle / Ivy

There is a newer version: 2.4.4
Show newest version
package com.pusher.client;

/**
 * Subscriptions to {@link com.pusher.client.channel.PrivateChannel Private} and
 * {@link com.pusher.client.channel.PresenceChannel presence} channels need to
 * be authorized. This interface provides an {@link #authorize} as a mechanism
 * for doing this.
 *
 * 

* See the {@link com.pusher.client.util.HttpAuthorizer HttpAuthorizer} as an * example. *

*/ public interface Authorizer { /** * Called when a channel is to be authenticated. * * @param channelName * The name of the channel to be authenticated. * @param socketId * A unique socket connection ID to be used with the * authentication. This uniquely identifies the connection that * the subscription is being authenticated for. * @return An authentication token. * @throws AuthorizationFailureException * if the authentication fails. */ String authorize(String channelName, String socketId) throws AuthorizationFailureException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy