X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FWebOfTrustConnector.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FWebOfTrustConnector.kt;h=a407e2a04fe1b32518582f6cd7ee8421d286f8de;hp=e31dce605bf6630598fe98b4f11a88d3f129b620;hb=6ebf42a54cc1ef44bdd762ad06e9b1a84bd7ad25;hpb=5b7e77d92a7dc57652332c87031c6d638d7588eb 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