public abstract class BasicInjectionDetector extends AbstractInjectionDetector
injectionSinksbugReporter| Modifier | Constructor and Description |
|---|---|
protected |
BasicInjectionDetector(edu.umd.cs.findbugs.BugReporter bugReporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParsedInjectionPoint(String fullMethodName,
InjectionPoint injectionPoint) |
protected InjectionPoint |
getInjectionPoint(org.apache.bcel.generic.InvokeInstruction invoke,
org.apache.bcel.generic.ConstantPoolGen cpg,
org.apache.bcel.generic.InstructionHandle handle) |
protected void |
loadConfiguredSinks(InputStream stream,
String bugType) |
protected void |
loadConfiguredSinks(String filename,
String bugType)
Loads taint sinks from configuration
|
protected void |
loadCustomConfigFiles()
Loads taint sinks from custom file.
|
protected void |
loadCustomSinks(String fileName,
String bugType)
Loads taint sinks configuration file from file system.
|
protected void |
loadSink(String line,
String bugType)
Loads a single taint sink (like a line of configuration)
|
analyzeLocation, getPriority, getPriorityFromTaintFrame, reportanalyzeMethod, shouldAnalyzeClass, visitClassContextprotected BasicInjectionDetector(edu.umd.cs.findbugs.BugReporter bugReporter)
protected InjectionPoint getInjectionPoint(org.apache.bcel.generic.InvokeInstruction invoke, org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InstructionHandle handle)
getInjectionPoint in class AbstractInjectionDetectorprotected void loadConfiguredSinks(InputStream stream, String bugType) throws IOException
IOExceptionprotected void loadConfiguredSinks(String filename, String bugType)
filename - name of the configuration filebugType - type of an injection bugprotected void loadCustomConfigFiles()
protected void loadCustomSinks(String fileName, String bugType)
fileName - name of the configuration filebugType - type of an injection bugprotected void loadSink(String line, String bugType)
line - specification of the sinkbugType - type of an injection bugprotected void addParsedInjectionPoint(String fullMethodName, InjectionPoint injectionPoint)
Copyright © 2017. All rights reserved.