Class TaintFlowSpec
java.lang.Object
org.openrewrite.analysis.dataflow.DataFlowSpec
org.openrewrite.analysis.dataflow.TaintFlowSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanisAdditionalFlowStep(DataFlowNode srcNode, DataFlowNode sinkNode) takes an existing flow-step in the graph and offers a potential next flow step.booleanisAdditionalTaintStep(DataFlowNode srcNode, DataFlowNode sinkNode) final booleanisBarrier(DataFlowNode node) Holds if flow through `expression` is prohibited.final booleanisBarrierGuard(Guard guard, boolean branch) booleanisSanitizer(DataFlowNode node) booleanisSanitizerGuard(Guard guard, boolean branch) Methods inherited from class org.openrewrite.analysis.dataflow.DataFlowSpec
isFlowStep, isSink, isSource
-
Constructor Details
-
TaintFlowSpec
public TaintFlowSpec()
-
-
Method Details
-
isAdditionalFlowStep
Description copied from class:DataFlowSpectakes an existing flow-step in the graph and offers a potential next flow step. The method can then decide if the offered potential next flow step should be considered a valid next flow step in the graph. Allows for ad-hoc taint tracking by allowing for additional, non-default flow steps to be added to the flow graph. The following is always true:srcExpression == srcCursor.getValue() && sinkExpression == sinkCursor.getValue().- Overrides:
isAdditionalFlowStepin classDataFlowSpec
-
isAdditionalTaintStep
-
isBarrierGuard
- Overrides:
isBarrierGuardin classDataFlowSpec
-
isSanitizerGuard
-
isBarrier
Description copied from class:DataFlowSpecHolds if flow through `expression` is prohibited.- Overrides:
isBarrierin classDataFlowSpec
-
isSanitizer
-