Class RecursiveJarSigner

    • Constructor Detail

      • RecursiveJarSigner

        public RecursiveJarSigner()
    • Method Detail

      • maxDepth

        abstract int maxDepth()
      • log

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

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

        private int signNestedJars​(java.nio.file.Path file,
                                   JarSigner.Options options,
                                   int currentDepth)
                            throws java.io.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:
        java.io.IOException