Rice Pastry API

rice.pastry.rmi
Class RMIPastrySecurityManager

java.lang.Object
  |
  +--rice.pastry.rmi.RMIPastrySecurityManager
All Implemented Interfaces:
PastrySecurityManager

public class RMIPastrySecurityManager
extends java.lang.Object
implements PastrySecurityManager

Security manager for RMI connections between nodes.

Version:
$Id: RMIPastrySecurityManager.java,v 1.16 2002/09/11 04:33:04 druschel Exp $
Author:
Andrew Ladd, Sitaram Iyer

Constructor Summary
RMIPastrySecurityManager(rice.pastry.rmi.RMINodeHandle rlh, rice.pastry.rmi.RMINodeHandlePool hp)
          Constructor.
 
Method Summary
 java.util.Date getTimestamp()
          Gets the current time for a timestamp.
 void setLocalPastryNode(rice.pastry.PastryNode pn)
          Sets the local Pastry node after it is fully constructed.
 boolean verifyAddressBinding(rice.pastry.security.Credentials cred, rice.pastry.messaging.Address addr)
          Checks to see if these credentials can be associated with the address.
 boolean verifyMessage(rice.pastry.messaging.Message msg)
          This method takes a message and returns true if the message is safe and false otherwise.
 rice.pastry.NodeHandle verifyNodeHandle(rice.pastry.NodeHandle handle)
          Verify node handle safety.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMIPastrySecurityManager

public RMIPastrySecurityManager(rice.pastry.rmi.RMINodeHandle rlh,
                                rice.pastry.rmi.RMINodeHandlePool hp)
Constructor.

Method Detail

setLocalPastryNode

public void setLocalPastryNode(rice.pastry.PastryNode pn)
Sets the local Pastry node after it is fully constructed.

Parameters:
pn - local Pastry node.

verifyMessage

public boolean verifyMessage(rice.pastry.messaging.Message msg)
This method takes a message and returns true if the message is safe and false otherwise.

Specified by:
verifyMessage in interface PastrySecurityManager
Parameters:
msg - a message.
Returns:
if the message is safe, false otherwise.

verifyAddressBinding

public boolean verifyAddressBinding(rice.pastry.security.Credentials cred,
                                    rice.pastry.messaging.Address addr)
Checks to see if these credentials can be associated with the address.

Specified by:
verifyAddressBinding in interface PastrySecurityManager
Parameters:
cred - some credentials.
addr - an address.
Returns:
true if the credentials match the address, false otherwise.

verifyNodeHandle

public rice.pastry.NodeHandle verifyNodeHandle(rice.pastry.NodeHandle handle)
Verify node handle safety.

Specified by:
verifyNodeHandle in interface PastrySecurityManager
Parameters:
handle - the handle to check.
Returns:
the verified node handle

getTimestamp

public java.util.Date getTimestamp()
Gets the current time for a timestamp.

Specified by:
getTimestamp in interface PastrySecurityManager
Returns:
the timestamp.

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection