mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Fixed some missing imports from recent refactoring.
This commit is contained in:
@@ -8,11 +8,11 @@ import java.security.GeneralSecurityException;
|
||||
|
||||
public interface MessageFactory {
|
||||
|
||||
Message createAnonymousMessage(MessageId parent, org.briarproject.api.sync.Group group,
|
||||
Message createAnonymousMessage(MessageId parent, Group group,
|
||||
String contentType, long timestamp, byte[] body) throws IOException,
|
||||
GeneralSecurityException;
|
||||
|
||||
Message createPseudonymousMessage(MessageId parent, org.briarproject.api.sync.Group group,
|
||||
Message createPseudonymousMessage(MessageId parent, Group group,
|
||||
Author author, PrivateKey privateKey, String contentType,
|
||||
long timestamp, byte[] body) throws IOException,
|
||||
GeneralSecurityException;
|
||||
|
||||
@@ -83,7 +83,8 @@ public class MessageHeader {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns message status. (This only applies to locally generated private messages.)
|
||||
* Returns message status. (This only applies to locally generated private
|
||||
* messages.)
|
||||
*/
|
||||
public State getStatus() {
|
||||
return status;
|
||||
|
||||
@@ -6,14 +6,14 @@ import org.briarproject.api.Author;
|
||||
public class UnverifiedMessage {
|
||||
|
||||
private final MessageId parent;
|
||||
private final org.briarproject.api.sync.Group group;
|
||||
private final Group group;
|
||||
private final Author author;
|
||||
private final String contentType;
|
||||
private final long timestamp;
|
||||
private final byte[] raw, signature;
|
||||
private final int bodyStart, bodyLength, signedLength;
|
||||
|
||||
public UnverifiedMessage(MessageId parent, org.briarproject.api.sync.Group group, Author author,
|
||||
public UnverifiedMessage(MessageId parent, Group group, Author author,
|
||||
String contentType, long timestamp, byte[] raw, byte[] signature,
|
||||
int bodyStart, int bodyLength, int signedLength) {
|
||||
this.parent = parent;
|
||||
@@ -37,10 +37,10 @@ public class UnverifiedMessage {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the {@link org.briarproject.api.sync.Group} to which the message belongs, or null if this
|
||||
* Returns the {@link Group} to which the message belongs, or null if this
|
||||
* is a private message.
|
||||
*/
|
||||
public org.briarproject.api.sync.Group getGroup() {
|
||||
public Group getGroup() {
|
||||
return group;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user