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

io.codemodder.remediation.javadeserialization.JavaDeserializationRemediator Maven / Gradle / Ivy

There is a newer version: 0.97.9
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy