private static class JarResigner.OverwriteSignature extends JarResigner
JarResigner.StrategyJarSigner.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, throwExceptionOverwriteSignature(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 JarResignerjava.io.IOExceptionprivate boolean removeSignatureFilesIfAny(java.nio.file.Path metaInf)
throws java.io.IOException
java.io.IOExceptionprivate boolean removeManifestDigestsIfAny(java.nio.file.Path manifestPath)
throws java.io.IOException
java.io.IOExceptionprivate 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.IOExceptionprivate static java.util.jar.Manifest readManifest(java.nio.file.Path manifestPath)
throws java.io.IOException
java.io.IOException