From 5c0afdc6a8a339c4d2f30a32d64b6ce727e1877f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 2 Jan 2011 13:47:31 +0100 Subject: [PATCH] Add method to remove trust assignments. (Not implemented in WoT yet!) --- .../sone/freenet/wot/WebOfTrustConnector.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java index 5d85082..0c4a75a 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java @@ -271,6 +271,21 @@ public class WebOfTrustConnector implements ConnectorListener { } /** + * Removes any trust assignment of the given own identity for the given + * identity. + * + * @param ownIdentity + * The own identity + * @param identity + * The identity to remove all trust for + * @throws WebOfTrustException + * if an error occurs + */ + public void removeTrust(OwnIdentity ownIdentity, Identity identity) throws WebOfTrustException { + performRequest(SimpleFieldSetConstructor.create().put("Message", "RemoveTrust").put("Truster", ownIdentity.getId()).put("Trustee", identity.getId()).get(), "TrustRemoved"); + } + + /** * Pings the Web of Trust plugin. If the plugin can not be reached, a * {@link PluginException} is thrown. * -- 2.7.4