Add Freenet plugin and WoT subprojects
[fwot.git] / wot / src / main / java / net / pterodactylus / freenet / wot / IdentityManager.java
diff --git a/wot/src/main/java/net/pterodactylus/freenet/wot/IdentityManager.java b/wot/src/main/java/net/pterodactylus/freenet/wot/IdentityManager.java
new file mode 100644 (file)
index 0000000..bed8dd4
--- /dev/null
@@ -0,0 +1,21 @@
+package net.pterodactylus.freenet.wot;
+
+import java.util.Set;
+
+import com.google.common.eventbus.EventBus;
+import com.google.common.util.concurrent.Service;
+import com.google.inject.ImplementedBy;
+
+/**
+ * Connects to a {@link WebOfTrustConnector} and sends identity events to an
+ * {@link EventBus}.
+ *
+ * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
+ */
+@ImplementedBy(IdentityManagerImpl.class)
+public interface IdentityManager extends Service {
+
+       boolean isConnected();
+       Set<OwnIdentity> getAllOwnIdentities();
+
+}