mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Include client version in group ID derivation.
This commit is contained in:
@@ -17,10 +17,15 @@ import javax.annotation.Nullable;
|
||||
public interface BlogManager {
|
||||
|
||||
/**
|
||||
* Unique ID of the blog client.
|
||||
* The unique ID of the blog client.
|
||||
*/
|
||||
ClientId CLIENT_ID = new ClientId("org.briarproject.briar.blog");
|
||||
|
||||
/**
|
||||
* The current version of the blog client.
|
||||
*/
|
||||
int CLIENT_VERSION = 0;
|
||||
|
||||
/**
|
||||
* Adds the given {@link Blog).}
|
||||
*/
|
||||
|
||||
@@ -5,6 +5,13 @@ import org.briarproject.briar.api.sharing.SharingManager;
|
||||
|
||||
public interface BlogSharingManager extends SharingManager<Blog> {
|
||||
|
||||
/**
|
||||
* The unique ID of the blog sharing client.
|
||||
*/
|
||||
ClientId CLIENT_ID = new ClientId("org.briarproject.briar.blog.sharing");
|
||||
|
||||
/**
|
||||
* The current version of the blog sharing client.
|
||||
*/
|
||||
int CLIENT_VERSION = 0;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,11 @@ public interface FeedManager {
|
||||
*/
|
||||
ClientId CLIENT_ID = new ClientId("org.briarproject.briar.feed");
|
||||
|
||||
/**
|
||||
* The current version of the RSS feed client.
|
||||
*/
|
||||
int CLIENT_VERSION = 0;
|
||||
|
||||
/**
|
||||
* Adds an RSS feed as a new dedicated blog.
|
||||
*/
|
||||
|
||||
@@ -22,6 +22,11 @@ public interface ForumManager {
|
||||
*/
|
||||
ClientId CLIENT_ID = new ClientId("org.briarproject.briar.forum");
|
||||
|
||||
/**
|
||||
* The current version of the forum client.
|
||||
*/
|
||||
int CLIENT_VERSION = 0;
|
||||
|
||||
/**
|
||||
* Subscribes to a forum.
|
||||
*/
|
||||
|
||||
@@ -5,6 +5,13 @@ import org.briarproject.briar.api.sharing.SharingManager;
|
||||
|
||||
public interface ForumSharingManager extends SharingManager<Forum> {
|
||||
|
||||
/**
|
||||
* The unique ID of the forum sharing client.
|
||||
*/
|
||||
ClientId CLIENT_ID = new ClientId("org.briarproject.briar.forum.sharing");
|
||||
|
||||
/**
|
||||
* The current version of the forum sharing client.
|
||||
*/
|
||||
int CLIENT_VERSION = 0;
|
||||
}
|
||||
|
||||
@@ -86,11 +86,6 @@ public interface IntroductionConstants {
|
||||
int TASK_ACTIVATE_CONTACT = 1;
|
||||
int TASK_ABORT = 2;
|
||||
|
||||
/**
|
||||
* The current version of the introduction protocol.
|
||||
*/
|
||||
int PROTOCOL_VERSION = 0;
|
||||
|
||||
/**
|
||||
* Label for deriving the shared secret.
|
||||
*/
|
||||
|
||||
@@ -21,6 +21,11 @@ public interface IntroductionManager extends ConversationClient {
|
||||
*/
|
||||
ClientId CLIENT_ID = new ClientId("org.briarproject.briar.introduction");
|
||||
|
||||
/**
|
||||
* The current version of the introduction client.
|
||||
*/
|
||||
int CLIENT_VERSION = 0;
|
||||
|
||||
/**
|
||||
* Sends two initial introduction messages.
|
||||
*/
|
||||
|
||||
@@ -18,6 +18,11 @@ public interface MessagingManager extends ConversationClient {
|
||||
*/
|
||||
ClientId CLIENT_ID = new ClientId("org.briarproject.briar.messaging");
|
||||
|
||||
/**
|
||||
* The current version of the messaging client.
|
||||
*/
|
||||
int CLIENT_VERSION = 0;
|
||||
|
||||
/**
|
||||
* Stores a local private message.
|
||||
*/
|
||||
|
||||
@@ -21,6 +21,11 @@ public interface PrivateGroupManager {
|
||||
*/
|
||||
ClientId CLIENT_ID = new ClientId("org.briarproject.briar.privategroup");
|
||||
|
||||
/**
|
||||
* The current version of the private group client.
|
||||
*/
|
||||
int CLIENT_VERSION = 0;
|
||||
|
||||
/**
|
||||
* Adds a new private group and joins it.
|
||||
*
|
||||
|
||||
@@ -25,6 +25,11 @@ public interface GroupInvitationManager extends ConversationClient {
|
||||
ClientId CLIENT_ID =
|
||||
new ClientId("org.briarproject.briar.privategroup.invitation");
|
||||
|
||||
/**
|
||||
* The current version of the private group invitation client.
|
||||
*/
|
||||
int CLIENT_VERSION = 0;
|
||||
|
||||
/**
|
||||
* Sends an invitation to share the given private group with the given
|
||||
* contact, including an optional message.
|
||||
|
||||
Reference in New Issue
Block a user