Class TaintMethodConfigWithArgumentsAndLocation
- java.lang.Object
-
- com.h3xstream.findsecbugs.taintanalysis.TaintMethodConfig
-
- com.h3xstream.findsecbugs.taintanalysis.TaintMethodConfigWithArgumentsAndLocation
-
- All Implemented Interfaces:
TaintTypeConfig
public class TaintMethodConfigWithArgumentsAndLocation extends TaintMethodConfig
Summary of information about a taint analysis method with configured arguments and location of the call.
Can be used to fine-tune false-positives in specific classes.
Examples:
javax/servlet/http/HttpServletRequest.getAttribute("applicationConstant"):SAFE@org/apache/jsp/edit_jsp
javax/servlet/http/HttpServletRequest.getAttribute(UNKNOWN):SAFE@org/apache/jsp/constants_jsp- Author:
- Tomas Polesovsky (Liferay, Inc.)
-
-
Field Summary
-
Fields inherited from class com.h3xstream.findsecbugs.taintanalysis.TaintMethodConfig
configPattern, fullMethodPattern, SAFE_CONFIG
-
-
Constructor Summary
Constructors Constructor Description TaintMethodConfigWithArgumentsAndLocation()Constructs an empty configured summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccepts(String typeSignature, String config)StringgetLocation()TaintMethodConfigWithArgumentsAndLocationload(String taintConfig)Loads method config from String, the method config contains a current class as the context
The method accepts syntax similar toTaintMethodConfig.load(String)with small difference.
The summary must ends with '@' character followed by class name-
Methods inherited from class com.h3xstream.findsecbugs.taintanalysis.TaintMethodConfig
addMutableStackIndex, getDefaultConstructorConfig, getMutableStackIndices, getOutputTaint, getParametersOutputTaints, getTypeSignature, hasMutableStackIndices, isConfigured, isInformative, isParametersOutputTaintsProcessed, setOuputTaint, setParameterOutputTaint, setParametersOutputTaintsProcessed, setTypeSignature, toString
-
-
-
-
Method Detail
-
load
public TaintMethodConfigWithArgumentsAndLocation load(String taintConfig) throws IOException
Loads method config from String, the method config contains a current class as the context
The method accepts syntax similar toTaintMethodConfig.load(String)with small difference.
The summary must ends with '@' character followed by class name- Specified by:
loadin interfaceTaintTypeConfig- Overrides:
loadin classTaintMethodConfig- Parameters:
taintConfig- method summary with syntax described above- Returns:
- initialized object with taint method summary
- Throws:
IOException- for bad format of parameterNullPointerException- if argument is null
-
getLocation
public String getLocation()
-
-