Class JarResigner
java.lang.Object
org.eclipse.cbi.maven.plugins.jarsigner.JarResigner
- All Implemented Interfaces:
JarSigner
- Direct Known Subclasses:
JarResigner.DoNotResign
,JarResigner.OverwriteSignature
,JarResigner.Resign
,JarResigner.ThrowException
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
private static class
private static class
private static class
static enum
private static class
Nested classes/interfaces inherited from interface org.eclipse.cbi.maven.plugins.jarsigner.JarSigner
JarSigner.Options
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JarSigner
create
(JarResigner.Strategy strategy, JarSigner delegate, org.apache.maven.plugin.logging.Log log) (package private) JarSigner
delegate()
static JarSigner
doNotResign
(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log) (package private) static Set
<MessageDigestAlgorithm> (package private) static MessageDigestAlgorithm
(package private) static boolean
hasManifestDigest
(Attributes entryAttributes) (package private) static boolean
isAlreadySigned
(Path jar) private static boolean
isBlockOrSF
(String entryName) (package private) final org.apache.maven.plugin.logging.Log
log()
static JarSigner
static JarSigner
overwriteWithSameDigestAlgorithm
(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log) (package private) abstract int
resign
(Path jar, JarSigner.Options options) static JarSigner
static JarSigner
resignWithSameDigestAlgorithm
(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log) int
sign
(Path jar, JarSigner.Options options) Sign the given Jar file.static JarSigner
throwException
(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
-
Field Details
-
DIGEST_ATTRIBUTE_SUFFIX
- See Also:
-
delegate
-
log
private final org.apache.maven.plugin.logging.Log log
-
-
Constructor Details
-
JarResigner
JarResigner(JarSigner delegate, org.apache.maven.plugin.logging.Log log)
-
-
Method Details
-
log
final org.apache.maven.plugin.logging.Log log() -
create
public static JarSigner create(JarResigner.Strategy strategy, JarSigner delegate, org.apache.maven.plugin.logging.Log log) -
delegate
JarSigner delegate() -
sign
Description copied from interface:JarSigner
Sign the given Jar file.- Specified by:
sign
in interfaceJarSigner
- Parameters:
jar
- the file to sign.- Returns:
- the number of Jar that has been signed.
- Throws:
IOException
-
resign
- Throws:
IOException
-
isAlreadySigned
- Throws:
IOException
-
hasManifestDigest
-
isBlockOrSF
-
doNotResign
-
throwException
-
resignWithSameDigestAlgorithm
-
resign
-
overwriteWithSameDigestAlgorithm
-
overwrite
-
getAllUsedDigestAlgorithm
- Throws:
IOException
-
getDigestAlgorithmToReuse
- Throws:
IOException
-