Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.pastry.direct
Class DirectSecurityManager

    java.lang.Object
      rice.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,v 1.7 2005/03/11 00:58:12 jeffh Exp $
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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.