Make the group field of messages optional.

Private messages have no group.
This commit is contained in:
akwizgran
2011-09-13 14:17:22 +01:00
parent 1d25b5a92e
commit 2858c139fa
4 changed files with 29 additions and 12 deletions

View File

@@ -6,7 +6,11 @@ import java.security.PrivateKey;
public interface MessageEncoder {
/** Encodes an anonymous to an unrestricted group. */
/** Encodes a private message. */
Message encodeMessage(MessageId parent, byte[] body) throws IOException,
GeneralSecurityException;
/** Encodes an anonymous message to an unrestricted group. */
Message encodeMessage(MessageId parent, Group group, byte[] body)
throws IOException, GeneralSecurityException;