Class Message

java.lang.Object
i5.las2peer.communication.Message
All Implemented Interfaces:
XmlAble, Cloneable

public class Message extends Object implements XmlAble, Cloneable
Base class for sending messages between AgentImpls. The content of the message will be encrypted symmetrically with a randomly generated key, this key will be encrypted asymmetrically for the recipient of the message. Additionally, the contents will be signed with the private key of the sender. Therefore, it is necessary, that the generating Thread has access to the private key of the sending agent. When specifying a topic, the message will be sent to all agents listening to the topic. Since these agents are not known, the message will not be encrypted.