From: David ‘Bombe’ Roden Date: Mon, 3 Jan 2011 06:22:35 +0000 (+0100) Subject: Add method to set the trust received by an OwnIdentity. X-Git-Tag: 0.4^2~8^2~20 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0bfd860518040f5d55d06f740f20e5d2ba44439a;p=Sone.git Add method to set the trust received by an OwnIdentity. --- diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java index 00caf48..dcafb18 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/DefaultIdentity.java @@ -248,6 +248,18 @@ public class DefaultIdentity implements Identity { } } + /** + * Sets the trust received for this identity by the given own identity. + * + * @param ownIdentity + * The own identity that gives the trust + * @param trust + * The trust received for this identity + */ + void setTrustPrivate(OwnIdentity ownIdentity, Trust trust) { + trustCache.put(ownIdentity, trust); + } + // // OBJECT METHODS //