Class RecursiveJarSigner

java.lang.Object
org.eclipse.cbi.maven.plugins.jarsigner.FilteredJarSigner
org.eclipse.cbi.maven.plugins.jarsigner.RecursiveJarSigner
All Implemented Interfaces:
JarSigner
Direct Known Subclasses:
AutoValue_RecursiveJarSigner

public abstract class RecursiveJarSigner extends FilteredJarSigner
  • Constructor Details

    • RecursiveJarSigner

      public RecursiveJarSigner()
  • Method Details

    • delegate

      abstract JarSigner delegate()
    • maxDepth

      abstract int maxDepth()
    • log

      abstract org.apache.maven.plugin.logging.Log log()
      The log on which feedback will be provided.
    • doSignJar

      int doSignJar(Path jar, JarSigner.Options options) throws IOException
      Specified by:
      doSignJar in class FilteredJarSigner
      Throws:
      IOException
    • doSignJarRecursively

      private int doSignJarRecursively(Path file, JarSigner.Options options, int currentDepth) throws IOException
      Sign this Jar and its nested Jar.
      Parameters:
      file - the file to sign
      currentDepth - the current nesting depth of the current file.
      digestAlgorithm -
      signedFile -
      Returns:
      the number of Jar that has been signed.
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      IOException
    • signNestedJars

      private int signNestedJars(Path file, JarSigner.Options options, int currentDepth) throws IOException
      Signs the inner jars in the given jar file
      Parameters:
      file - jar file containing inner jars to be signed
      currentDepth -
      digestAlgorithm -
      innerJars - A list of inner jars that needs to be signed
      Returns:
      the number of Jar that has been signed.
      Throws:
      IOException
    • builder

      public static RecursiveJarSigner.Builder builder()