Rice Pastry API

rice.scribe.security
Interface IScribeSecurityManager

All Known Implementing Classes:
PSecurityManager

public interface IScribeSecurityManager

The Scribe security manager interface.

Author:
Romer Gil

Method Summary
 boolean verifyCanCreate(rice.pastry.NodeHandle handle, rice.pastry.NodeId topicId)
          Verify that the node handle has permission to create a topic.
 boolean verifyCanPublish(rice.pastry.NodeHandle handle, rice.pastry.NodeId topicId)
          Verify that the node handle has permission to publish to a topic.
 boolean verifyCanSubscribe(rice.pastry.NodeHandle handle, rice.pastry.NodeId topicId)
          Verify that the node handle has permission to subscribe to a topic.
 

Method Detail

verifyCanCreate

public boolean verifyCanCreate(rice.pastry.NodeHandle handle,
                               rice.pastry.NodeId topicId)
Verify that the node handle has permission to create a topic.

Parameters:
handle - the node that will be verified
topicId - the topic that the node is trying to access
Returns:
true if the node should have access, false otherwise

verifyCanPublish

public boolean verifyCanPublish(rice.pastry.NodeHandle handle,
                                rice.pastry.NodeId topicId)
Verify that the node handle has permission to publish to a topic.

Parameters:
handle - the node that will be verified
topicId - the topic that the node is trying to access
Returns:
true if the node should have access, false otherwise

verifyCanSubscribe

public boolean verifyCanSubscribe(rice.pastry.NodeHandle handle,
                                  rice.pastry.NodeId topicId)
Verify that the node handle has permission to subscribe to a topic.

Parameters:
handle - the node that will be verified
topicId - the topic that the node is trying to access
Returns:
true if the node should have access, false otherwise

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection