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) |
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. |
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)
Copyright © 2017. All rights reserved.