Class InfoflowConfiguration.SourceSinkConfiguration

java.lang.Object
soot.jimple.infoflow.InfoflowConfiguration.SourceSinkConfiguration
Enclosing class:
InfoflowConfiguration

public static class InfoflowConfiguration.SourceSinkConfiguration extends Object
The configuration for the source and sink manager
Author:
Steven Arzt
  • Constructor Details

    • SourceSinkConfiguration

      public SourceSinkConfiguration()
  • Method Details

    • merge

      public void merge(InfoflowConfiguration.SourceSinkConfiguration ssConfig)
      Copies the settings of the given configuration into this configuration object
      Parameters:
      ssConfig - The other configuration object
    • setSourceFilterMode

      public void setSourceFilterMode(InfoflowConfiguration.SourceSinkFilterMode sourceFilterMode)
      Sets the default mode for handling sources that have not been configured explicitly
      Parameters:
      sourceFilterMode - The default mode for handling sources that have not been configured explicitly
    • getSinkFilterMode

      public InfoflowConfiguration.SourceSinkFilterMode getSinkFilterMode()
      Gets the default mode for handling sinks that have not been configured explicitly
      Returns:
      The default mode for handling sinks that have not been configured explicitly
    • setSinkFilterMode

      public void setSinkFilterMode(InfoflowConfiguration.SourceSinkFilterMode sinkFilterMode)
      Sets the default mode for handling sinks that have not been configured explicitly
      Parameters:
      sinkFilterMode - The default mode for handling sinks that have not been configured explicitly
    • setCallbackSourceMode

      public void setCallbackSourceMode(InfoflowConfiguration.CallbackSourceMode callbackSourceMode)
      Sets under which circumstances the parameters of callback methods shall be treated as sources.
      Parameters:
      callbackSourceMode - The strategy for deciding whether a certain callback parameter is a data flow source or not
    • getCallbackSourceMode

      public InfoflowConfiguration.CallbackSourceMode getCallbackSourceMode()
      Sets under which circumstances the parameters of callback methods shall be treated as sources.
      Returns:
      The strategy for deciding whether a certain callback parameter is a data flow source or not
    • setEnableLifecycleSources

      public void setEnableLifecycleSources(boolean enableLifecycleSources)
      Sets whether the parameters of lifecycle methods shall be considered as sources
      Parameters:
      enableLifecycleSources - True if the parameters of lifecycle methods shall be considered as sources, otherwise false
    • getEnableLifecycleSources

      public boolean getEnableLifecycleSources()
      Gets whether the parameters of lifecycle methods shall be considered as sources
      Returns:
      True if the parameters of lifecycle methods shall be considered as sources, otherwise false
    • setLayoutMatchingMode

      public void setLayoutMatchingMode(InfoflowConfiguration.LayoutMatchingMode mode)
      Sets the mode to be used when deciding whether a UI control is a source or not
      Parameters:
      mode - The mode to be used for classifying UI controls as sources
    • getLayoutMatchingMode

      public InfoflowConfiguration.LayoutMatchingMode getLayoutMatchingMode()
      Gets the mode to be used when deciding whether a UI control is a source or not
      Returns:
      The mode to be used for classifying UI controls as sources
    • getSourceFilterMode

      public InfoflowConfiguration.SourceSinkFilterMode getSourceFilterMode()
      Gets the default mode for handling sources that have not been configured explicitly
      Returns:
      The default mode for handling sources that have not been configured explicitly
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object