ePOST API

rice.post.messaging
Class EncryptedNotificationMessage

java.lang.Object
  extended by rice.post.messaging.PostMessage
      extended by rice.post.messaging.EncryptedNotificationMessage
All Implemented Interfaces:
java.io.Serializable

public class EncryptedNotificationMessage
extends PostMessage

This class represents a notification message which is in encrypted state.

See Also:
Serialized Form

Constructor Summary
EncryptedNotificationMessage(PostEntityAddress sender, PostEntityAddress destination, byte[] key, byte[] data)
          Constructs a NotificationMessage for the given Email.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 byte[] getData()
          Returns the ciphertext of the NotificationMessage
 PostEntityAddress getDestination()
          Returns the destination of this message.
 byte[] getKey()
          Returns the encrypted key of the NotificationMessage
 
Methods inherited from class rice.post.messaging.PostMessage
getSender
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedNotificationMessage

public EncryptedNotificationMessage(PostEntityAddress sender,
                                    PostEntityAddress destination,
                                    byte[] key,
                                    byte[] data)
Constructs a NotificationMessage for the given Email.

Parameters:
key - The encrypted key
data - The encrypted NotificationMessage
Method Detail

getDestination

public final PostEntityAddress getDestination()
Returns the destination of this message.

Returns:
The destination

getKey

public byte[] getKey()
Returns the encrypted key of the NotificationMessage

Returns:
The encrypted key.

getData

public byte[] getData()
Returns the ciphertext of the NotificationMessage

Returns:
The ciphertext.

equals

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

ePOST API

Copyright © 2001-2005 - Rice Pastry.