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=1cf1644ee4f9bebccb1ea097b04cbaa486a91b33;hp=6364b6f9c1f75ff46af6c02efaf9dc66287763af;hb=1f70b96444f309fbbf338d474af395ff615d244b;hpb=f2814a20ed19c144302f9aa5009071ffa7c106c8 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 6364b6f..1cf1644 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/Identity.java @@ -85,14 +85,15 @@ public interface Identity { /** * Retrieves the trust that this identity receives from the given own - * identity. + * identity. If this identity is not in the own identity’s trust tree, a + * {@link Trust} is returned that has all its elements set to {@code null}. + * If the trust can not be retrieved, {@code null} is returned. * * @param ownIdentity * The own identity to get the trust for - * @return The trust assigned to this identity - * @throws WebOfTrustException - * if an error occurs retrieving the trust + * @return The trust assigned to this identity, or {@code null} if the trust + * could not be retrieved */ - public Trust getTrust(OwnIdentity ownIdentity) throws WebOfTrustException; + public Trust getTrust(OwnIdentity ownIdentity); }