io.codemodder.remediation.headerinjection.HeaderInjectionRemediator Maven / Gradle / Ivy
package io.codemodder.remediation.headerinjection;
import com.github.javaparser.ast.CompilationUnit;
import io.codemodder.CodemodFileScanningResult;
import io.codemodder.codetf.DetectorRule;
import java.util.List;
import java.util.function.Function;
/** Remediates header injection vulnerabilities. */
public interface HeaderInjectionRemediator {
/** Remediate all header injection vulnerabilities in the given compilation unit. */
CodemodFileScanningResult remediateAll(
CompilationUnit cu,
String path,
DetectorRule detectorRule,
List issuesForFile,
Function getKey,
Function getStartLine,
Function getEndLine,
Function getColumn);
/** The default header injection remediation strategy. */
HeaderInjectionRemediator DEFAULT = new DefaultHeaderInjectionRemediator();
}