X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentity.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentity.java;h=d4288eafdf2a2537541298186fd7bbd483bf37a1;hp=60e24d6e8bc1d258cd31eccef859926d87cab183;hb=d196ff9daeaf1661c48060bdeb426b051a0c1ef3;hpb=732fe4fc507605a73f7162cfcd808f8db6076950 diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java index 60e24d6..d4288ea 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java @@ -17,9 +17,6 @@ package net.pterodactylus.sone.freenet.wot; -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; import java.util.Set; /** @@ -41,9 +38,6 @@ public class Identity { /** The request URI of the identity. */ private final String requestUri; - /** The properties of the identity. */ - protected final Map properties = Collections.synchronizedMap(new HashMap()); - /** * Creates a new identity. * @@ -124,24 +118,18 @@ public class Identity { } /** - * Returns the properties of the identity. - * - * @return The properties of the identity - */ - public Map getProperties() { - return Collections.unmodifiableMap(properties); - } - - /** * Returns the value of the property with the given name. * * @param name * The name of the property * @return The value of the property, or {@code null} if there is no such * property + * @throws PluginException + * if an error occured communicating with the Web of Trust + * plugin */ - public String getProperty(String name) { - return properties.get(name); + public String getProperty(String name) throws PluginException { + return webOfTrustConnector.getProperty(this, name); } //