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

io.codemodder.remediation.xss.XSSRemediator Maven / Gradle / Ivy

There is a newer version: 0.97.9
Show newest version
package io.codemodder.remediation.xss;

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

/** Remediates header injection vulnerabilities. */
public interface XSSRemediator {

  /** Remediate all header injection vulnerabilities in the given compilation unit. */
   CodemodFileScanningResult remediateJava(
      CompilationUnit cu,
      String path,
      DetectorRule detectorRule,
      List issuesForFile,
      Function getKey,
      Function getLine,
      Function getColumn);

   CodemodFileScanningResult remediateJSP(
      Path filePath,
      String relativePath,
      DetectorRule detectorRule,
      List issuesForFile,
      Function getKey,
      Function getLine,
      Function getColumn);

  /** The default header injection remediation strategy. */
  XSSRemediator DEFAULT = new DefaultXSSRemediator();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy