Class LowAnonRecipe
java.lang.Object
net.messagevortex.blender.recipes.BlenderRecipe
net.messagevortex.blender.recipes.LowAnonRecipe
- All Implemented Interfaces:
Comparable<BlenderRecipe>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyRecipe(Set<IdentityStoreBlock> anonSet, IdentityStoreBlock from, IdentityStoreBlock to) Creates a routing block with the given parameters.booleanisAppliable(Set<IdentityStoreBlock> anonSet) Checks if the recipe is applicaable.Methods inherited from class net.messagevortex.blender.recipes.BlenderRecipe
addRecipe, clearRecipes, compareTo, getRecipe
-
Constructor Details
-
LowAnonRecipe
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.
- Parameters:
section- the name of the configuration section to be used
-
-
Method Details
-
isAppliable
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.
- Specified by:
isAppliablein classBlenderRecipe- Parameters:
anonSet- the anonymisation set available- Returns:
- true if recipe may be applied
-
applyRecipe
public RoutingCombo applyRecipe(Set<IdentityStoreBlock> anonSet, IdentityStoreBlock from, IdentityStoreBlock to) throws IOException Description copied from class:BlenderRecipeCreates a routing block with the given parameters.
- Specified by:
applyRecipein classBlenderRecipe- Parameters:
anonSet- the anonymity set to be usedfrom- the sending node addressto- the receiving node address- Returns:
- the built routing block
- Throws:
IOException- if a problem arises when creating the block
-