mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Don't use ClientId.toString() for signature labels.
This commit is contained in:
@@ -36,4 +36,8 @@ public class ClientId implements Comparable<ClientId> {
|
|||||||
return id.hashCode();
|
return id.hashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ import static org.briarproject.briar.api.blog.BlogManager.CLIENT_ID;
|
|||||||
@NotNullByDefault
|
@NotNullByDefault
|
||||||
public interface BlogPostFactory {
|
public interface BlogPostFactory {
|
||||||
|
|
||||||
String SIGNING_LABEL_POST = CLIENT_ID + "/POST";
|
String SIGNING_LABEL_POST = CLIENT_ID.getString() + "/POST";
|
||||||
String SIGNING_LABEL_COMMENT = CLIENT_ID + "/COMMENT";
|
String SIGNING_LABEL_COMMENT = CLIENT_ID.getString() + "/COMMENT";
|
||||||
|
|
||||||
BlogPost createBlogPost(GroupId groupId, long timestamp,
|
BlogPost createBlogPost(GroupId groupId, long timestamp,
|
||||||
@Nullable MessageId parent, LocalAuthor author, String body)
|
@Nullable MessageId parent, LocalAuthor author, String body)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import static org.briarproject.briar.api.forum.ForumManager.CLIENT_ID;
|
|||||||
@NotNullByDefault
|
@NotNullByDefault
|
||||||
public interface ForumPostFactory {
|
public interface ForumPostFactory {
|
||||||
|
|
||||||
String SIGNING_LABEL_POST = CLIENT_ID + "/POST";
|
String SIGNING_LABEL_POST = CLIENT_ID.getString() + "/POST";
|
||||||
|
|
||||||
@CryptoExecutor
|
@CryptoExecutor
|
||||||
ForumPost createPost(GroupId groupId, long timestamp,
|
ForumPost createPost(GroupId groupId, long timestamp,
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import static org.briarproject.briar.api.privategroup.PrivateGroupManager.CLIENT
|
|||||||
@NotNullByDefault
|
@NotNullByDefault
|
||||||
public interface GroupMessageFactory {
|
public interface GroupMessageFactory {
|
||||||
|
|
||||||
String SIGNING_LABEL_JOIN = CLIENT_ID + "/JOIN";
|
String SIGNING_LABEL_JOIN = CLIENT_ID.getString() + "/JOIN";
|
||||||
String SIGNING_LABEL_POST = CLIENT_ID + "/POST";
|
String SIGNING_LABEL_POST = CLIENT_ID.getString() + "/POST";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a join announcement message for the creator of a group.
|
* Creates a join announcement message for the creator of a group.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import static org.briarproject.briar.api.privategroup.invitation.GroupInvitation
|
|||||||
@NotNullByDefault
|
@NotNullByDefault
|
||||||
public interface GroupInvitationFactory {
|
public interface GroupInvitationFactory {
|
||||||
|
|
||||||
String SIGNING_LABEL_INVITE = CLIENT_ID + "/INVITE";
|
String SIGNING_LABEL_INVITE = CLIENT_ID.getString() + "/INVITE";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a signature to include when inviting a member to join a private
|
* Returns a signature to include when inviting a member to join a private
|
||||||
|
|||||||
@@ -98,7 +98,8 @@ class IntroduceeManager {
|
|||||||
private static final Logger LOG =
|
private static final Logger LOG =
|
||||||
Logger.getLogger(IntroduceeManager.class.getName());
|
Logger.getLogger(IntroduceeManager.class.getName());
|
||||||
|
|
||||||
static final String SIGNING_LABEL_RESPONSE = CLIENT_ID + "/RESPONSE";
|
static final String SIGNING_LABEL_RESPONSE =
|
||||||
|
CLIENT_ID.getString() + "/RESPONSE";
|
||||||
|
|
||||||
private final MessageSender messageSender;
|
private final MessageSender messageSender;
|
||||||
private final DatabaseComponent db;
|
private final DatabaseComponent db;
|
||||||
|
|||||||
Reference in New Issue
Block a user