io.codemodder.remediation.javadeserialization.JavaDeserializationRemediator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-base Show documentation
Show all versions of codemodder-base Show documentation
Base framework for writing codemods in Java
package io.codemodder.remediation.javadeserialization;
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 Java deserialization vulnerabilities. */
public interface JavaDeserializationRemediator {
/** Remediate all Java deserialization 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. */
JavaDeserializationRemediator DEFAULT = new DefaultJavaDeserializationRemediator();
}