mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Parsing and retrieval of private groups in PrivateGroupManager
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package org.briarproject.api.privategroup;
|
||||
|
||||
import org.briarproject.api.FormatException;
|
||||
import org.briarproject.api.identity.Author;
|
||||
import org.briarproject.api.sync.Group;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface PrivateGroupFactory {
|
||||
@@ -17,4 +19,9 @@ public interface PrivateGroupFactory {
|
||||
@NotNull
|
||||
PrivateGroup createPrivateGroup(String name, Author author, byte[] salt);
|
||||
|
||||
/**
|
||||
* Parses a group and returns the corresponding PrivateGroup.
|
||||
*/
|
||||
PrivateGroup parsePrivateGroup(Group group) throws FormatException;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user