public abstract class TaintSink
extends java.lang.Object
TaintSink
specifies a sink for the taint analysis. A sink can be sensitive to the
instance, the arguments, or the static fields. If a sink S is sensitive to X, then if X is
tainted, we conclude that the taint has reached S.Modifier and Type | Field and Description |
---|---|
protected static java.util.function.Predicate<TaintSource> |
IS_VALID_FOR_SOURCE_DEFAULT |
java.util.function.Predicate<TaintSource> |
isValidForSource |
Signature |
signature |
Constructor and Description |
---|
TaintSink(Signature signature)
Create a taint sink.
|
TaintSink(Signature signature,
java.util.function.Predicate<TaintSource> isValidForSource)
Create a taint sink.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
abstract java.lang.String |
toString() |
protected static final java.util.function.Predicate<TaintSource> IS_VALID_FOR_SOURCE_DEFAULT
public final Signature signature
public final java.util.function.Predicate<TaintSource> isValidForSource
public TaintSink(Signature signature)
signature
- the signature of a sink methodpublic TaintSink(Signature signature, java.util.function.Predicate<TaintSource> isValidForSource)
signature
- the signature of a sink methodisValidForSource
- predicate on whether the sink is valid for a given source