Add method to retrieve the trust of an identity for an own identity.
[Sone.git] / src / main / java / net / pterodactylus / sone / freenet / wot / Identity.java
index 6df6447..41540e5 100644 (file)
@@ -83,4 +83,15 @@ public interface Identity {
         */
        public String getProperty(String name);
 
+       /**
+        * Retrieves the trust that this identity receives from the given own
+        * identity.
+        *
+        * @param ownIdentity
+        *            The own identity to get the trust for
+        * @return The trust assigned to this identity
+        * @throws WebOfTrustException
+        */
+       public Trust getTrust(OwnIdentity ownIdentity) throws WebOfTrustException;
+
 }