public interface SecurityPolicy
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreate(Client client,
String channel,
Message message)
Test if a message should be allowed to create a new Channel
|
boolean |
canHandshake(Message message)
Test if a handshake message should be accepted.
|
boolean |
canPublish(Client client,
String channel,
Message messsage)
Test if a client can publish a message to a channel
|
boolean |
canSubscribe(Client client,
String channel,
Message messsage)
Test if a client is allowed to subscribe to a channel
|
boolean canHandshake(Message message)
message - A handshake message.Client instance createdboolean canCreate(Client client, String channel, Message message)
client - The client sending the message. The client may be
null if an anonymous publish is attempted. Server clients are
indicated by Client.isLocal()channel - The channel the message is trying to createmessage - The messageboolean canSubscribe(Client client, String channel, Message messsage)
client - The client sending the message. The client may be
null if an anonymous publish is attempted. Server clients are
indicated by Client.isLocal()channel - The channel the message is trying to subscribe tomesssage - The message to /meta/subscribeboolean canPublish(Client client, String channel, Message messsage)
client - The client sending the message. The client may be
null if an anonymous publish is attempted. Server clients are
indicated by Client.isLocal()channel - The channel the message is trying to publish tomesssage - The message to publishCopyright © 2012 Dojo Foundation. All Rights Reserved.