X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=wot%2Fsrc%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffreenet%2Fwot%2FIdentityManager.java;fp=wot%2Fsrc%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffreenet%2Fwot%2FIdentityManager.java;h=bed8dd4316c30ae2d74ca0bd0373c79d5bb9b9a1;hb=ff91b199987d1ed9934400c5271017f9573362f4;hp=0000000000000000000000000000000000000000;hpb=c22ae93efcd90645b5677f35ae81a9f9c60820f1;p=fwot.git
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
index 0000000..bed8dd4
--- /dev/null
+++ b/wot/src/main/java/net/pterodactylus/freenet/wot/IdentityManager.java
@@ -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 David âBombeâ Roden
+ */
+@ImplementedBy(IdentityManagerImpl.class)
+public interface IdentityManager extends Service {
+
+ boolean isConnected();
+ Set getAllOwnIdentities();
+
+}