X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FOwnIdentity.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FOwnIdentity.java;h=74b5f6aa9d99817b9e394d0a9fed2be71b4ef9bf;hp=cfcab65d7dc9079411582ed7322541b9586cff25;hb=5e6c39b23a0aa59d39cf7432c8763a37c839de91;hpb=eb2ef658fdd82fca688d1e0c52942cedb3699e3e diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java index cfcab65..74b5f6a 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/OwnIdentity.java @@ -84,6 +84,30 @@ public class OwnIdentity extends Identity { } } + /** + * Sets the property with the given name to the given value. + * + * @param name + * The name of the property to set + * @param value + * The new value of the property + */ + public void setProperty(String name, String value) { + properties.put(name, value); + /* TODO - set property. */ + } + + /** + * Removes the property with the given name. + * + * @param name + * The name of the property to remove + */ + public void removeProperty(String name) { + properties.remove(name); + /* TODO - remove property. */ + } + // // OBJECT METHODS //