Class MethodBasedSourceSinkManager

java.lang.Object
soot.jimple.infoflow.sourcesSinks.manager.MethodBasedSourceSinkManager
All Implemented Interfaces:
ISourceSinkManager
Direct Known Subclasses:
EmptySourceSinkManager

public abstract class MethodBasedSourceSinkManager extends Object implements ISourceSinkManager
Abstracts from the very generic statement-based SourceSinkManager so that users can conveniently work on the called methods instead of having to analyze the call statement every time
Author:
Steven Arzt
  • Constructor Details

    • MethodBasedSourceSinkManager

      public MethodBasedSourceSinkManager()
  • Method Details

    • getSourceMethodInfo

      public abstract SourceInfo getSourceMethodInfo(soot.SootMethod method)
    • getSinkMethodInfo

      public abstract SinkInfo getSinkMethodInfo(soot.SootMethod method)
    • getSourceInfo

      public SourceInfo getSourceInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager)
      Description copied from interface: ISourceSinkManager
      Determines if a method called by the Stmt is a source method or not. If so, additional information is returned
      Specified by:
      getSourceInfo in interface ISourceSinkManager
      Parameters:
      sCallSite - a Stmt which should include an invokeExrp calling a method
      manager - The manager object for interacting with the solver
      Returns:
      A SourceInfo object containing additional information if this call is a source, otherwise null
    • getSinkInfo

      public SinkInfo getSinkInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager, AccessPath ap)
      Description copied from interface: ISourceSinkManager
      Checks if the given access path at this statement will leak.
      Specified by:
      getSinkInfo in interface ISourceSinkManager
      Parameters:
      sCallSite - The call site to check
      manager - The manager object for interacting with the solver
      ap - The access path to check. Pass null to check whether the given statement can be a sink for any given access path.
      Returns:
      A SinkInfo object containing additional information if this call is a sink, otherwise null
    • typeIsString

      protected boolean typeIsString(soot.Type type)