private static class JarResigner.OverwriteSignature extends JarResigner
JarResigner.Strategy
JarSigner.Options
Constructor and Description |
---|
OverwriteSignature(JarSigner delegate,
org.apache.maven.plugin.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
private void |
pruneEmptyEntries(java.util.jar.Manifest manifest,
java.util.List<java.lang.String> keysOfRemovedDigests) |
private static java.util.jar.Manifest |
readManifest(java.nio.file.Path manifestPath) |
private java.util.List<java.lang.String> |
removeDigestAttributes(java.util.jar.Manifest manifest) |
private boolean |
removeManifestDigestsIfAny(java.nio.file.Path manifestPath) |
private boolean |
removeSignatureFilesIfAny(java.nio.file.Path metaInf) |
protected int |
resign(java.nio.file.Path jar,
JarSigner.Options options) |
private static void |
writeManifest(java.util.jar.Manifest manifest,
java.nio.file.Path path) |
create, delegate, doNotResign, getAllUsedDigestAlgorithm, getDigestAlgorithmToReuse, hasManifestDigest, isAlreadySigned, log, overwrite, overwriteWithSameDigestAlgorithm, resign, resignWithSameDigestAlgorithm, sign, throwException
OverwriteSignature(JarSigner delegate, org.apache.maven.plugin.logging.Log log)
protected int resign(java.nio.file.Path jar, JarSigner.Options options) throws java.io.IOException
resign
in class JarResigner
java.io.IOException
private boolean removeSignatureFilesIfAny(java.nio.file.Path metaInf) throws java.io.IOException
java.io.IOException
private boolean removeManifestDigestsIfAny(java.nio.file.Path manifestPath) throws java.io.IOException
java.io.IOException
private java.util.List<java.lang.String> removeDigestAttributes(java.util.jar.Manifest manifest)
private void pruneEmptyEntries(java.util.jar.Manifest manifest, java.util.List<java.lang.String> keysOfRemovedDigests)
private static void writeManifest(java.util.jar.Manifest manifest, java.nio.file.Path path) throws java.io.IOException
java.io.IOException
private static java.util.jar.Manifest readManifest(java.nio.file.Path manifestPath) throws java.io.IOException
java.io.IOException