rice.pastry.wire
Class WirePastrySecurityManager
- public class WirePastrySecurityManager
- implements rice.pastry.security.PastrySecurityManager
- Security manager for wire connections between nodes.
- Version:
- $Id: WirePastrySecurityManager.java,v 1.1 2002/08/13 18:09:56 amislove Exp $
- Author:
- Alan Mislove
WirePastrySecurityManager
public WirePastrySecurityManager(rice.pastry.wire.WireNodeHandle snh,
rice.pastry.wire.WireNodeHandlePool snhp)
- 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.