X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FWebOfTrustConnector.kt;h=a407e2a04fe1b32518582f6cd7ee8421d286f8de;hp=e31dce605bf6630598fe98b4f11a88d3f129b620;hb=HEAD;hpb=d13f0d94b3c6a5cce03ec92cd7d0f3470ea2fb57 diff --git a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.kt b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.kt index e31dce6..a407e2a 100644 --- a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.kt +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.kt @@ -29,6 +29,16 @@ interface WebOfTrustConnector { fun loadTrustedIdentities(ownIdentity: OwnIdentity, context: String? = null): Set /** + * Loads all identities known to the given own identity that have the (optional) given context. + * + * @param ownIdentity The own identity + * @param context The context to filter, or `null` + * @return All trusted identities + * @throws PluginException if an error occured talking to the Web of Trust plugin + */ + fun loadAllIdentities(ownIdentity: OwnIdentity, context: String? = null): Set + + /** * Adds the given context to the given identity. * * @param ownIdentity The identity to add the context to