public class DefaultSecurityPolicy extends Object implements SecurityPolicy
Constructor and Description |
---|
DefaultSecurityPolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreate(BayeuxServer server,
ServerSession session,
String channelId,
ServerMessage message)
|
boolean |
canHandshake(BayeuxServer server,
ServerSession session,
ServerMessage message)
Blocking version of
SecurityPolicy.canHandshake(BayeuxServer, ServerSession, ServerMessage, Promise) . |
boolean |
canPublish(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message)
|
boolean |
canSubscribe(BayeuxServer server,
ServerSession session,
ServerChannel channel,
ServerMessage message)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canCreate, canHandshake, canPublish, canSubscribe
public boolean canCreate(BayeuxServer server, ServerSession session, String channelId, ServerMessage message)
SecurityPolicy
Blocking version of SecurityPolicy.canCreate(BayeuxServer, ServerSession, String, ServerMessage, Promise)
.
canCreate
in interface SecurityPolicy
server
- the BayeuxServer
objectsession
- the client sending the messagechannelId
- the channel to be createdmessage
- the message trying to create the channelpublic boolean canHandshake(BayeuxServer server, ServerSession session, ServerMessage message)
SecurityPolicy
Blocking version of SecurityPolicy.canHandshake(BayeuxServer, ServerSession, ServerMessage, Promise)
.
canHandshake
in interface SecurityPolicy
server
- the BayeuxServer
objectsession
- the session (not yet added to the BayeuxServer)message
- the handshake messagepublic boolean canPublish(BayeuxServer server, ServerSession session, ServerChannel channel, ServerMessage message)
SecurityPolicy
Blocking version of SecurityPolicy.canPublish(BayeuxServer, ServerSession, ServerChannel, ServerMessage, Promise)
.
canPublish
in interface SecurityPolicy
server
- the BayeuxServer
objectsession
- the client sending the messagechannel
- the channel to publish tomessage
- the message to being publishedpublic boolean canSubscribe(BayeuxServer server, ServerSession session, ServerChannel channel, ServerMessage message)
SecurityPolicy
Blocking version of SecurityPolicy.canSubscribe(BayeuxServer, ServerSession, ServerChannel, ServerMessage, Promise)
.
canSubscribe
in interface SecurityPolicy
server
- the BayeuxServer
objectsession
- the client sending the messagechannel
- the channel to subscribe tomessage
- the subscribe messageCopyright © 2008–2024 The CometD Project. All rights reserved.