Class JvmInvokeTaintSink.Builder

    • Field Detail

      • isValidForSource

        protected java.util.function.Predicate<TaintSource> isValidForSource
      • callMatcher

        protected java.util.function.Predicate<Call> callMatcher
      • takesInstance

        protected boolean takesInstance
      • takesArgs

        protected java.util.Set<java.lang.Integer> takesArgs
      • takesGlobals

        protected java.util.Set<java.lang.String> takesGlobals
      • signature

        protected final Signature signature
    • Constructor Detail

      • Builder

        public Builder​(Signature signature)
        Create a new builder for JvmInvokeTaintSink.
        Parameters:
        signature -
        signature - the signature of a sink method
    • Method Detail

      • setIsValidForSource

        public JvmInvokeTaintSink.Builder setIsValidForSource​(java.util.function.Predicate<TaintSource> isValidForSource)
        Parameters:
        isValidForSource - predicate on whether the sink is valid for a given source
      • setTakesInstance

        public JvmInvokeTaintSink.Builder setTakesInstance​(boolean takesInstance)
        Parameters:
        takesInstance - whether the sink is sensitive to the calling instance
      • setTakesArgs

        public JvmInvokeTaintSink.Builder setTakesArgs​(java.util.Set<java.lang.Integer> takesArgs)
        Parameters:
        takesArgs - a set of sensitive arguments
      • setTakesGlobals

        public JvmInvokeTaintSink.Builder setTakesGlobals​(java.util.Set<java.lang.String> takesGlobals)
        Parameters:
        takesGlobals - a set of sensitive global variables
      • setCallMatcher

        public JvmInvokeTaintSink.Builder setCallMatcher​(java.util.function.Predicate<Call> callMatcher)
        Parameters:
        callMatcher - predicate on whether a call matches this taint sink