Created interfaces for use by UI. #172 #173

This commit is contained in:
akwizgran
2015-12-16 13:10:05 +00:00
parent 545a2c04bb
commit 9fbdb08cf1
4 changed files with 173 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package org.briarproject.api.identity;
import org.briarproject.api.AuthorId;
import org.briarproject.api.LocalAuthor;
import org.briarproject.api.db.DbException;
import java.util.Collection;
public interface IdentityManager {
/** Stores a local pseudonym. */
void addLocalAuthor(LocalAuthor a) throws DbException;
/** Returns the local pseudonym with the given ID. */
LocalAuthor getLocalAuthor(AuthorId a) throws DbException;
/** Returns all local pseudonyms. */
Collection<LocalAuthor> getLocalAuthors() throws DbException;
/** Removes a local pseudonym and all associated state. */
void removeLocalAuthor(AuthorId a) throws DbException;
}