Class JarResigner.OverwriteSignature

    • Constructor Detail

      • OverwriteSignature

        OverwriteSignature​(JarSigner delegate,
                           org.apache.maven.plugin.logging.Log log)
    • Method Detail

      • resign

        protected int resign​(java.nio.file.Path jar,
                             JarSigner.Options options)
                      throws java.io.IOException
        Specified by:
        resign in class JarResigner
        Throws:
        java.io.IOException
      • removeSignatureFilesIfAny

        private boolean removeSignatureFilesIfAny​(java.nio.file.Path metaInf)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • removeManifestDigestsIfAny

        private boolean removeManifestDigestsIfAny​(java.nio.file.Path manifestPath)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • removeDigestAttributes

        private java.util.List<java.lang.String> removeDigestAttributes​(java.util.jar.Manifest manifest)
      • pruneEmptyEntries

        private void pruneEmptyEntries​(java.util.jar.Manifest manifest,
                                       java.util.List<java.lang.String> keysOfRemovedDigests)
      • writeManifest

        private static void writeManifest​(java.util.jar.Manifest manifest,
                                          java.nio.file.Path path)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readManifest

        private static java.util.jar.Manifest readManifest​(java.nio.file.Path manifestPath)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException