Class JarUnsigner

java.lang.Object
io.quarkus.deployment.pkg.JarUnsigner

public final class JarUnsigner extends Object
JarUnsigner is used to remove the signature from a jar file.
  • Method Details

    • unsignJar

      public static void unsignJar(Path jarPath, Path targetPath) throws IOException
      Unsigns a jar file by removing the signature entries. If the JAR is not signed, it will simply copy the original JAR to the target path.
      Parameters:
      jarPath - the path to the jar file to unsign
      targetPath - the path to the target jar file
      Throws:
      IOException - if an I/O error occurs
    • unsignJar

      public static void unsignJar(Path jarPath, Path targetPath, Predicate<String> includePredicate) throws IOException
      Unsigns a jar file by removing the signature entries.
      Parameters:
      jarPath - the path to the jar file to unsign
      targetPath - the path to the target jar file
      includePredicate - a predicate to determine which entries to include in the target jar
      Throws:
      IOException - if an I/O error occurs