io.codemodder.remediation.missingsecureflag.MissingSecureFlagRemediator Maven / Gradle / Ivy
package io.codemodder.remediation.missingsecureflag;
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 interface for remediating missing secure flag vulnerabilities. */
public interface MissingSecureFlagRemediator {
/** Remediate all missing secure flag vulnerabilities in the given compilation unit. */
CodemodFileScanningResult remediateAll(
CompilationUnit cu,
String path,
DetectorRule detectorRule,
List issuesForFile,
Function getKey,
Function getStartLine,
Function getEndLine,
Function getStartColumn);
MissingSecureFlagRemediator DEFAULT = new DefaultMissingSecureFlagRemediator();
}