Package crypto.analysis
Class CrySLRulesetSelector
- java.lang.Object
-
- crypto.analysis.CrySLRulesetSelector
-
public class CrySLRulesetSelector extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCrySLRulesetSelector.Rulesetcurrent RuleSets
-
Constructor Summary
Constructors Constructor Description CrySLRulesetSelector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<CrySLRule>makeFromRuleset(String rulesBasePath, CrySLRulesetSelector.Ruleset... set)static List<CrySLRule>makeFromRulesetPath(String path)static List<CrySLRule>makeFromRulesetString(String rulesBasePath, String rulesetString)Computes the ruleset from a string.static CrySLRulemakeSingleRule(String rulesBasePath, CrySLRulesetSelector.Ruleset ruleset, String rulename)Creates and returns a singleCrySLRuleobject for the given RuleSet argument.
-
-
-
Method Detail
-
makeFromRuleset
public static List<CrySLRule> makeFromRuleset(String rulesBasePath, CrySLRulesetSelector.Ruleset... set) throws CryptoAnalysisException
- Parameters:
rulesBasePath- aStringpath giving the location of the CrySL ruleset base folderset- theCrySLRulesetSelector.Rulesetfor which theCrySLRuleobjects should be created for- Returns:
- the
ListwithCrySLRuleobjects - Throws:
CryptoAnalysisException- If there is an error reading a ruleset
-
makeFromRulesetPath
public static List<CrySLRule> makeFromRulesetPath(String path) throws CryptoAnalysisException
- Throws:
CryptoAnalysisException
-
makeFromRulesetString
public static List<CrySLRule> makeFromRulesetString(String rulesBasePath, String rulesetString) throws CryptoAnalysisException
Computes the ruleset from a string.- Parameters:
rulesBasePath- aStringpath giving the location of the CrySL ruleset base folderrulesetString- String- Returns:
- a list of the rules from the ruleset
- Throws:
CryptoAnalysisException- If there is no ruleset
-
makeSingleRule
public static CrySLRule makeSingleRule(String rulesBasePath, CrySLRulesetSelector.Ruleset ruleset, String rulename) throws CryptoAnalysisException
Creates and returns a singleCrySLRuleobject for the given RuleSet argument.- Parameters:
rulesBasePath- aStringpath giving the location of the CrySL ruleset base folderruleset- theCrySLRulesetSelector.Rulesetwhere the rule belongs torulename- the name of the rule- Returns:
- the
CrySLRuleobject - Throws:
CryptoAnalysisException- If the rule cannot be found
-
-