Rice Pastry API

rice.scribe.security
Class PSecurityManager

java.lang.Object
  |
  +--rice.scribe.security.PSecurityManager
All Implemented Interfaces:
IScribeSecurityManager

public class PSecurityManager
extends java.lang.Object
implements IScribeSecurityManager

Implementation of a trivial security manager. It allows all accesses.

Author:
Romer Gil

Constructor Summary
PSecurityManager()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSecurityManager

public PSecurityManager()
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.

Specified by:
verifyCanCreate in interface IScribeSecurityManager
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.

Specified by:
verifyCanPublish in interface IScribeSecurityManager
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.

Specified by:
verifyCanSubscribe in interface IScribeSecurityManager
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