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 JarResigner
JarResigner.StrategyNested classes/interfaces inherited from interface 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 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
-