public class InjectionSink extends Object
| Constructor and Description |
|---|
InjectionSink(edu.umd.cs.findbugs.Detector detector,
String bugType,
int originalPriority,
edu.umd.cs.findbugs.ba.ClassContext classContext,
org.apache.bcel.classfile.Method method,
org.apache.bcel.generic.InstructionHandle instructionHandle,
String sinkMethod)
Constructs the instance and stores immutable values for reporting
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLine(edu.umd.cs.findbugs.SourceLineAnnotation line)
Adds a line with tainted source or path for reporting
|
void |
addLines(Collection<TaintLocation> locations)
Adds lines with tainted source or path for reporting
|
void |
addUnknownSources(Collection<TaintLocation> sources) |
boolean |
equals(Object obj) |
edu.umd.cs.findbugs.BugInstance |
generateBugInstance(boolean taintedInsideMethod)
Uses immutable values, updated priority and added lines for reporting
|
int |
hashCode() |
boolean |
updateSinkPriority(int priority)
Updates the priority if it is higher (which means lower number)
|
public InjectionSink(edu.umd.cs.findbugs.Detector detector,
String bugType,
int originalPriority,
edu.umd.cs.findbugs.ba.ClassContext classContext,
org.apache.bcel.classfile.Method method,
org.apache.bcel.generic.InstructionHandle instructionHandle,
String sinkMethod)
detector - detctor for reportingbugType - reported bug typeoriginalPriority - original priority (without sink confirmation)classContext - class with the sinkmethod - method with the sinkinstructionHandle - instruction with the sinksinkMethod - called method (sink)NullPointerException - if any argument is nullpublic boolean updateSinkPriority(int priority)
priority - potential new prioritypublic void addLine(edu.umd.cs.findbugs.SourceLineAnnotation line)
line - line to addpublic void addLines(Collection<TaintLocation> locations)
locations - collection of locations used to extract linespublic void addUnknownSources(Collection<TaintLocation> sources)
public edu.umd.cs.findbugs.BugInstance generateBugInstance(boolean taintedInsideMethod)
taintedInsideMethod - true if not influenced by method argumentsCopyright © 2017. All rights reserved.