rice.pastry.rmi
Class RMIPastrySecurityManager
- public class RMIPastrySecurityManager
- implements rice.pastry.security.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
RMIPastrySecurityManager
public RMIPastrySecurityManager(rice.pastry.rmi.RMINodeHandle rlh,
rice.pastry.rmi.RMINodeHandlePool hp)
- Constructor.
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.
- 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.
- 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.
- Parameters:
handle
- the handle to check.
- Returns:
- the verified node handle
getTimestamp
public java.util.Date getTimestamp()
- Gets the current time for a timestamp.
- Returns:
- the timestamp.