ePOST API

rice.pastry.security
Class PermissiveSecurityManager

java.lang.Object
  extended by rice.pastry.security.PermissiveSecurityManager
All Implemented Interfaces:
PastrySecurityManager

public class PermissiveSecurityManager
extends java.lang.Object
implements PastrySecurityManager

A trivial security manager.

Version:
$Id: PermissiveSecurityManager.java,v 1.3 2005/03/11 00:58:08 jeffh Exp $
Author:
Andrew Ladd

Constructor Summary
PermissiveSecurityManager()
           
 
Method Summary
 java.util.Date getTimestamp()
          Gets the current time for a timestamp.
 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

PermissiveSecurityManager

public PermissiveSecurityManager()
Method Detail

verifyMessage

public boolean verifyMessage(Message msg)
Description copied from interface: PastrySecurityManager
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)
Description copied from interface: PastrySecurityManager
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)
Description copied from interface: PastrySecurityManager
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()
Description copied from interface: PastrySecurityManager
Gets the current time for a timestamp.

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

ePOST API

Copyright © 2001-2005 - Rice Pastry.