Parsing and retrieval of private groups in PrivateGroupManager

This commit is contained in:
Torsten Grote
2016-10-13 17:42:15 -03:00
parent e0835ad460
commit 6db59ffce5
3 changed files with 37 additions and 6 deletions

View File

@@ -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;
}