All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.remediation.xxe.XXERemediator Maven / Gradle / Ivy

package io.codemodder.remediation.xxe;

import com.github.javaparser.ast.CompilationUnit;
import io.codemodder.CodemodFileScanningResult;
import io.codemodder.codetf.DetectorRule;
import java.util.List;
import java.util.function.Function;

/** Strategy for remediating XXE vulnerabilities at the sink for multiple parser APIs. */
public interface XXERemediator {

  /** A default implementation for callers. */
  XXERemediator DEFAULT = new DefaultXXERemediator();

  /** Remediate all XXE vulnerabilities in the given compilation unit. */
   CodemodFileScanningResult remediateAll(
      CompilationUnit cu,
      String path,
      DetectorRule detectorRule,
      List issuesForFile,
      Function getKey,
      Function getStartLine,
      Function getColumn);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy