Class TaintQuery.Sanitizer

  • Enclosing class:
    TaintQuery

    public static class TaintQuery.Sanitizer
    extends Object
    A regex pair matching call targets that neutralize taint on a path.
    • Constructor Detail

      • Sanitizer

        public Sanitizer​(String ownerPattern,
                         String methodPattern)
    • Method Detail

      • getOwnerPattern

        public String getOwnerPattern()
        Returns:
        the owner pattern
      • getMethodPattern

        public String getMethodPattern()
        Returns:
        the method pattern
      • getCompiledOwner

        public Pattern getCompiledOwner()
        Returns:
        the compiled owner
      • getCompiledMethod

        public Pattern getCompiledMethod()
        Returns:
        the compiled method
      • matches

        public boolean matches​(String owner,
                               String method)
        Tests both patterns against a call target.
        Parameters:
        owner - internal name of the declaring class
        method - method name
        Returns:
        true when both patterns match in full