public class TaintClassConfig extends Object implements TaintTypeConfig
| Modifier and Type | Field and Description |
|---|---|
static Taint.State |
DEFAULT_TAINT_STATE |
| Constructor and Description |
|---|
TaintClassConfig() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accepts(String typeSignature,
String taintConfig) |
Taint.State |
getTaintState() |
Taint.State |
getTaintState(Taint.State defaultState) |
String |
getTypeSignature()
Returns the analyzed method full signature
|
boolean |
isImmutable() |
TaintClassConfig |
load(String taintConfig)
Loads class summary from String
The summary should have the following syntax: defaultTaintState #IMMUTABLE, where
defaultTaintState means the Taint state for type casting and return types. |
void |
setTypeSignature(String typeSignature)
Set full class and method signature for the analyzed method
|
public static final Taint.State DEFAULT_TAINT_STATE
public TaintClassConfig load(String taintConfig) throws IOException
defaultTaintState #IMMUTABLE, where defaultTaintState means the Taint state for type casting and return types. Usually SAFE is used to specify classes that cannot contain injection escape characters#IMMUTABLE flags is used for classes that cannot be subject to taint state mutation during taint analysisLjava/lang/Boolean;:SAFE#IMMUTABLESAFE#IMMUTABLELjava/lang/String;:#IMMUTABLELjava/util/concurrent/atomic/AtomicBoolean;:SAFEload in interface TaintTypeConfigtaintConfig - state#IMMUTABLE, where state is one of Taint.STATE or emptyIOException - for bad format of parameterNullPointerException - if argument is nullpublic Taint.State getTaintState()
public boolean isImmutable()
public Taint.State getTaintState(Taint.State defaultState)
public void setTypeSignature(String typeSignature)
typeSignature - method signaturepublic String getTypeSignature()
Copyright © 2019. All rights reserved.