public class LowAnonRecipe extends BlenderRecipe
Constructor and Description |
---|
LowAnonRecipe(String section)
Constructor to create low anon recipe.
|
Modifier and Type | Method and Description |
---|---|
RoutingCombo |
applyRecipe(Set<IdentityStoreBlock> anonSet,
IdentityStoreBlock from,
IdentityStoreBlock to)
Creates a routing block with the given parameters.
|
boolean |
isAppliable(Set<IdentityStoreBlock> anonSet)
Checks if the recipe is applicaable.
|
addRecipe, clearRecipes, compareTo, getRecipe
public LowAnonRecipe(String section)
Constructor to create low anon recipe.
This class is required for bootstrapping a new nenber not having sufficient ephemeral identities to use a high anonymity recipe.
section
- the name of the configuration section to be usedpublic boolean isAppliable(Set<IdentityStoreBlock> anonSet)
Checks if the recipe is applicaable.
Recipe is applicable if less than four identities are available. For larger anonymisation sets a more secure recipe is assumed to be available.
isAppliable
in class BlenderRecipe
anonSet
- the anonymisation set availablepublic RoutingCombo applyRecipe(Set<IdentityStoreBlock> anonSet, IdentityStoreBlock from, IdentityStoreBlock to) throws IOException
BlenderRecipe
Creates a routing block with the given parameters.
applyRecipe
in class BlenderRecipe
anonSet
- the anonymity set to be usedfrom
- the sending node addressto
- the receiving node addressIOException
- if a problem arises when creating the blockCopyright © 2023. All rights reserved.