Package crypto.analysis
Class AnalysisSeedWithSpecification
- java.lang.Object
-
- boomerang.Query
-
- boomerang.ForwardQuery
-
- boomerang.WeightedForwardQuery<typestate.TransitionFunction>
-
- crypto.analysis.IAnalysisSeed
-
- crypto.analysis.AnalysisSeedWithSpecification
-
public class AnalysisSeedWithSpecification extends IAnalysisSeed
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<boomerang.jimple.Statement,soot.SootMethod>allCallsOnObject-
Fields inherited from class crypto.analysis.IAnalysisSeed
cryptoScanner, errorCollection, predicateHandler
-
-
Constructor Summary
Constructors Constructor Description AnalysisSeedWithSpecification(CryptoScanner cryptoScanner, boomerang.jimple.Statement stmt, boomerang.jimple.Val val, ClassSpecification spec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEnsuredPredicate(EnsuredCrySLPredicate ensPred)Add an ensured predicate to the seed and implicitly rerun all constraint and predicate checksvoidaddHiddenPredicatesToError(RequiredPredicateError reqPredError)Collection<ISLConstraint>checkPredicates()Check, whether all required predicates are satisfied, and return a set with all predicates that are not satisfied.booleanequals(Object obj)voidexecute()Map<boomerang.jimple.Statement,soot.SootMethod>getAllCallsOnObject()Set<sync.pds.solver.nodes.Node<boomerang.jimple.Statement,boomerang.jimple.Val>>getDataFlowPath()ExtractParameterAnalysisgetParameterAnalysis()ClassSpecificationgetSpec()inthashCode()booleanisSecure()voidregisterResultsHandler(ResultsHandler handler)Collection<AbstractError>retrieveErrorsForPredCondition(CrySLPredicate pred)voidsetSecure(boolean secure)StringtoString()-
Methods inherited from class crypto.analysis.IAnalysisSeed
addError, getErrors, getMethod, getObjectId
-
-
-
-
Field Detail
-
allCallsOnObject
protected Map<boomerang.jimple.Statement,soot.SootMethod> allCallsOnObject
-
-
Constructor Detail
-
AnalysisSeedWithSpecification
public AnalysisSeedWithSpecification(CryptoScanner cryptoScanner, boomerang.jimple.Statement stmt, boomerang.jimple.Val val, ClassSpecification spec)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classboomerang.ForwardQuery
-
execute
public void execute()
-
registerResultsHandler
public void registerResultsHandler(ResultsHandler handler)
-
addEnsuredPredicate
public void addEnsuredPredicate(EnsuredCrySLPredicate ensPred)
Add an ensured predicate to the seed and implicitly rerun all constraint and predicate checks- Parameters:
ensPred- the ensured predicate
-
checkPredicates
public Collection<ISLConstraint> checkPredicates()
Check, whether all required predicates are satisfied, and return a set with all predicates that are not satisfied. If the set is empty, all required predicate constraints are satisfied.- Returns:
- remainingPredicates predicates that are not satisfied
-
retrieveErrorsForPredCondition
public Collection<AbstractError> retrieveErrorsForPredCondition(CrySLPredicate pred)
-
addHiddenPredicatesToError
public void addHiddenPredicatesToError(RequiredPredicateError reqPredError)
-
getSpec
public ClassSpecification getSpec()
-
getParameterAnalysis
public ExtractParameterAnalysis getParameterAnalysis()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classboomerang.Query
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classboomerang.Query
-
isSecure
public boolean isSecure()
-
setSecure
public void setSecure(boolean secure)
-
getDataFlowPath
public Set<sync.pds.solver.nodes.Node<boomerang.jimple.Statement,boomerang.jimple.Val>> getDataFlowPath()
- Specified by:
getDataFlowPathin classIAnalysisSeed
-
getAllCallsOnObject
public Map<boomerang.jimple.Statement,soot.SootMethod> getAllCallsOnObject()
-
-