public class JvmTaintSource extends TaintSource
JvmTaintSource specifies a method which can taint any (subset) of the following: the instance, the return value, the argument objects, or static fields.
The callMatcher decides whether the call (already filtered by its Signature) should trigger this source.| Modifier and Type | Field and Description |
|---|---|
java.util.Optional<java.util.function.Predicate<Call>> |
callMatcher |
signature, taintsArgs, taintsGlobals, taintsReturn, taintsThis| Constructor and Description |
|---|
JvmTaintSource(Signature signature,
boolean taintsThis,
boolean taintsReturn,
java.util.Set<java.lang.Integer> taintsArgs,
java.util.Set<java.lang.String> taintsGlobals)
Create a taint source.
|
JvmTaintSource(Signature signature,
java.util.Optional<java.util.function.Predicate<Call>> callMatcher,
boolean taintsThis,
boolean taintsReturn,
java.util.Set<java.lang.Integer> taintsArgs,
java.util.Set<java.lang.String> taintsGlobals)
Create a taint source.
|
JvmTaintSource(Signature signature,
java.util.function.Predicate<Call> callMatcher,
boolean taintsThis,
boolean taintsReturn,
java.util.Set<java.lang.Integer> taintsArgs,
java.util.Set<java.lang.String> taintsGlobals)
Create a taint source.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public final java.util.Optional<java.util.function.Predicate<Call>> callMatcher
public JvmTaintSource(Signature signature, java.util.function.Predicate<Call> callMatcher, boolean taintsThis, boolean taintsReturn, java.util.Set<java.lang.Integer> taintsArgs, java.util.Set<java.lang.String> taintsGlobals)
signature - the signature a source methodcallMatcher - whether the call matches this taint sourcetaintsThis - whether the source taints the calling instancetaintsReturn - whether the source taints its returntaintsArgs - a set of tainted argumentstaintsGlobals - a set of tainted global variablespublic JvmTaintSource(Signature signature, boolean taintsThis, boolean taintsReturn, java.util.Set<java.lang.Integer> taintsArgs, java.util.Set<java.lang.String> taintsGlobals)
signature - the signature a source methodtaintsThis - whether the source taints the calling instancetaintsReturn - whether the source taints its returntaintsArgs - a set of tainted argumentstaintsGlobals - a set of tainted global variablespublic JvmTaintSource(Signature signature, java.util.Optional<java.util.function.Predicate<Call>> callMatcher, boolean taintsThis, boolean taintsReturn, java.util.Set<java.lang.Integer> taintsArgs, java.util.Set<java.lang.String> taintsGlobals)
signature - the signature a source methodcallMatcher - an optional predicate on whether the call matches this taint sourcetaintsThis - whether the source taints the calling instancetaintsReturn - whether the source taints its returntaintsArgs - a set of tainted argumentstaintsGlobals - a set of tainted global variablespublic boolean equals(java.lang.Object obj)
equals in class TaintSourcepublic int hashCode()
hashCode in class TaintSourcepublic java.lang.String toString()
toString in class TaintSource