Class JarResigner.OverwriteSignature
java.lang.Object
org.eclipse.cbi.maven.plugins.jarsigner.JarResigner
org.eclipse.cbi.maven.plugins.jarsigner.JarResigner.OverwriteSignature
- All Implemented Interfaces:
JarSigner
- Direct Known Subclasses:
JarResigner.OverwriteSignatureWithSameDigestAlg
- Enclosing class:
JarResigner
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.cbi.maven.plugins.jarsigner.JarResigner
JarResigner.Strategy
Nested classes/interfaces inherited from interface org.eclipse.cbi.maven.plugins.jarsigner.JarSigner
JarSigner.Options
-
Constructor Summary
ConstructorsConstructorDescriptionOverwriteSignature
(JarSigner delegate, org.apache.maven.plugin.logging.Log log) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
pruneEmptyEntries
(Manifest manifest, List<String> keysOfRemovedDigests) private static Manifest
readManifest
(Path manifestPath) removeDigestAttributes
(Manifest manifest) private boolean
removeManifestDigestsIfAny
(Path manifestPath) private boolean
removeSignatureFilesIfAny
(Path metaInf) protected int
resign
(Path jar, JarSigner.Options options) private static void
writeManifest
(Manifest manifest, Path path) Methods inherited from class org.eclipse.cbi.maven.plugins.jarsigner.JarResigner
create, delegate, doNotResign, getAllUsedDigestAlgorithm, getDigestAlgorithmToReuse, hasManifestDigest, isAlreadySigned, log, overwrite, overwriteWithSameDigestAlgorithm, resign, resignWithSameDigestAlgorithm, sign, throwException
-
Constructor Details
-
OverwriteSignature
OverwriteSignature(JarSigner delegate, org.apache.maven.plugin.logging.Log log)
-
-
Method Details
-
resign
- Specified by:
resign
in classJarResigner
- Throws:
IOException
-
removeSignatureFilesIfAny
- Throws:
IOException
-
removeManifestDigestsIfAny
- Throws:
IOException
-
removeDigestAttributes
-
pruneEmptyEntries
-
writeManifest
- Throws:
IOException
-
readManifest
- Throws:
IOException
-