X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FWebOfTrustConnector.java;h=0c4a75aa471c7f0b50aaa95d07b22250fc6ccdde;hb=1bbbccf32d00e5d046275c63c5a2eb489f77603b;hp=5d85082cdbbd2088d73a1ea247bbee60421b7cb2;hpb=a8a97f37c2bd64a0bf4fe4cb38d61818f5f9a148;p=Sone.git 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. *