ePOST API

rice.post.storage
Class SecureReference

java.lang.Object
  extended by rice.post.storage.SecureReference
All Implemented Interfaces:
java.io.Serializable

public class SecureReference
extends java.lang.Object
implements java.io.Serializable

This class serves as a reference to a PostObject stored in the Post system. This class knows both the location in the network and the encryption key of the corresponding PostData object. In this scheme, the corresponding Postdata object has been stored using a secure scheme

Version:
$Id: SecureReference.java 2172 2005-02-05 00:03:08Z amislove $
See Also:
Serialized Form

Constructor Summary
SecureReference(Id location, byte[] key)
          Contructs a SecureReference object given the address and encryption key of the object.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 byte[] getKey()
           
 Id getLocation()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecureReference

public SecureReference(Id location,
                       byte[] key)
Contructs a SecureReference object given the address and encryption key of the object.

Parameters:
location - The location in PAST of the PostData object
key - The encryption key of the PostData object
Method Detail

getLocation

public Id getLocation()
Returns:
The location of the data referenced by this object

getKey

public byte[] getKey()
Returns:
The encryption key for the data

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

ePOST API

Copyright © 2001-2005 - Rice Pastry.