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 classprivate static classprivate static classprivate static classprivate static classstatic enumprivate static classNested 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 JarSignercreate(JarResigner.Strategy strategy, JarSigner delegate, org.apache.maven.plugin.logging.Log log) (package private) JarSignerdelegate()static JarSignerdoNotResign(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log) (package private) static Set<MessageDigestAlgorithm> (package private) static MessageDigestAlgorithm(package private) static booleanhasManifestDigest(Attributes entryAttributes) (package private) static booleanisAlreadySigned(Path jar) private static booleanisBlockOrSF(String entryName) (package private) final org.apache.maven.plugin.logging.Loglog()static JarSignerstatic JarSigneroverwriteWithSameDigestAlgorithm(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log) (package private) abstract intresign(Path jar, JarSigner.Options options) static JarSignerstatic JarSignerresignWithSameDigestAlgorithm(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log) intsign(Path jar, JarSigner.Options options) Sign the given Jar file.static JarSignerthrowException(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:JarSignerSign the given Jar file.- Specified by:
signin 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
-