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.StrategyNested 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 voidpruneEmptyEntries(Manifest manifest, List<String> keysOfRemovedDigests) private static ManifestreadManifest(Path manifestPath) removeDigestAttributes(Manifest manifest) private booleanremoveManifestDigestsIfAny(Path manifestPath) private booleanremoveSignatureFilesIfAny(Path metaInf) protected intresign(Path jar, JarSigner.Options options) private static voidwriteManifest(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:
resignin classJarResigner- Throws:
IOException
-
removeSignatureFilesIfAny
- Throws:
IOException
-
removeManifestDigestsIfAny
- Throws:
IOException
-
removeDigestAttributes
-
pruneEmptyEntries
-
writeManifest
- Throws:
IOException
-
readManifest
- Throws:
IOException
-