Rice Pastry API

rice.pastry.security
Interface PastrySecurityManager

All Known Implementing Classes:
DirectSecurityManager, PermissiveSecurityManager, RMIPastrySecurityManager, WirePastrySecurityManager

public interface PastrySecurityManager

The security manager interface.

Version:
$Id: PastrySecurityManager.java,v 1.2 2002/02/28 07:04:50 druschel Exp $
Author:
Andrew Ladd

Method Summary
 java.util.Date getTimestamp()
          Gets the current time for a timestamp.
 boolean verifyAddressBinding(rice.pastry.security.Credentials cred, rice.pastry.messaging.Address addr)
          Checks to see if these credentials can be associated with the address.
 boolean verifyMessage(rice.pastry.messaging.Message msg)
          This method takes a message and returns true if the message is safe and false otherwise.
 rice.pastry.NodeHandle verifyNodeHandle(rice.pastry.NodeHandle handle)
          Verify node handle safety.
 

Method Detail

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.

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection