Rice Pastry API

rice.pastry.direct
Class DirectSecurityManager

java.lang.Object
  extended byrice.pastry.direct.DirectSecurityManager
All Implemented Interfaces:
PastrySecurityManager

public class DirectSecurityManager
extends java.lang.Object
implements PastrySecurityManager

Security manager for direct connections between nodes.

Version:
$Id: DirectSecurityManager.java 2805 2005-11-17 16:22:24Z jeffh $
Author:
Andrew Ladd

Constructor Summary
DirectSecurityManager(NetworkSimulator ns)
          Constructor.
 
Method Summary
 java.util.Date getTimestamp()
          Gets the current time for a timestamp.
 void setLocalPastryNode(PastryNode local)
          Sets the local pastry node.
 boolean verifyAddressBinding(Credentials cred, Address addr)
          Checks to see if these credentials can be associated with the address.
 boolean verifyMessage(Message msg)
          This method takes a message and returns true if the message is safe and false otherwise.
 NodeHandle verifyNodeHandle(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

DirectSecurityManager

public DirectSecurityManager(NetworkSimulator ns)
Constructor.

Parameters:
ns - DESCRIBE THE PARAMETER
Method Detail

getTimestamp

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

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

setLocalPastryNode

public void setLocalPastryNode(PastryNode local)
Sets the local pastry node.

Parameters:
local - The new LocalPastryNode value

verifyMessage

public boolean verifyMessage(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(Credentials cred,
                                    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 NodeHandle verifyNodeHandle(NodeHandle handle)
Verify node handle safety.

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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection