mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
20 lines
615 B
Java
20 lines
615 B
Java
package org.briarproject.api.sync;
|
|
|
|
import org.briarproject.api.crypto.PrivateKey;
|
|
import org.briarproject.api.identity.Author;
|
|
|
|
import java.io.IOException;
|
|
import java.security.GeneralSecurityException;
|
|
|
|
public interface MessageFactory {
|
|
|
|
Message createAnonymousMessage(MessageId parent, Group group,
|
|
String contentType, long timestamp, byte[] body) throws IOException,
|
|
GeneralSecurityException;
|
|
|
|
Message createPseudonymousMessage(MessageId parent, Group group,
|
|
Author author, PrivateKey privateKey, String contentType,
|
|
long timestamp, byte[] body) throws IOException,
|
|
GeneralSecurityException;
|
|
}
|