ePOST API

rice.post.storage
Interface PostData

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AddFolderLogEntry, CoalescedLog, CoalescedLog.PhantomLogEntry, DeleteMailLogEntry, DeleteMailsLogEntry, EmailData, EmailLog, EmailLogEntry, EncryptedLog, ForwardLog, GroupData, InsertMailLogEntry, InsertMailsLogEntry, Log, LogEntry, PostLog, RemoveFolderLogEntry, SnapShot, SnapShotLogEntry, UpdateMailLogEntry, UpdateMailsLogEntry

public interface PostData
extends java.io.Serializable

This interface is designed to serve as an abstraction of a data object stored in Post. This object will be stored in an encrypted state at a location in the network. Users can access this object by having a copy of the corresponding Reference object, which contains the location and possibly the key of this object.

Version:
$Id: PostData.java 2222 2005-02-11 17:47:34Z amislove $

Method Summary
 ContentHashReference buildContentHashReference(Id[] locations, byte[][] keys)
          This method dynamically builds an appropriate ContentHashReference for this type of PostData given a location and key.
 SecureReference buildSecureReference(Id location, byte[] key)
          This method dynamically builds an appropriate SecureReference for this type of PostData given a location and key.
 SignedReference buildSignedReference(Id location)
          This method dynamically builds an appropriate SignedReference for this type of PostData given a location.
 

Method Detail

buildSignedReference

SignedReference buildSignedReference(Id location)
This method dynamically builds an appropriate SignedReference for this type of PostData given a location.

Parameters:
location - The location of the data
Returns:
A pointer to the data

buildContentHashReference

ContentHashReference buildContentHashReference(Id[] locations,
                                               byte[][] keys)
This method dynamically builds an appropriate ContentHashReference for this type of PostData given a location and key.

Parameters:
location - The location of the data
key - The for the data
Returns:
A pointer to the data

buildSecureReference

SecureReference buildSecureReference(Id location,
                                     byte[] key)
This method dynamically builds an appropriate SecureReference for this type of PostData given a location and key.

Parameters:
location - The location of the data
key - The for the data
Returns:
A pointer to the data

ePOST API

Copyright © 2001-2005 - Rice Pastry.