Class JarResigner
- java.lang.Object
-
- org.eclipse.cbi.maven.plugins.jarsigner.JarResigner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JarResigner.Strategy
-
Nested classes/interfaces inherited from interface org.eclipse.cbi.maven.plugins.jarsigner.JarSigner
JarSigner.Options
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JarSigner
create(JarResigner.Strategy strategy, JarSigner delegate, org.apache.maven.plugin.logging.Log log)
static JarSigner
doNotResign(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
static JarSigner
overwrite(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
static JarSigner
overwriteWithSameDigestAlgorithm(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
static JarSigner
resign(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
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)
-
-
-
Method Detail
-
create
public static JarSigner create(JarResigner.Strategy strategy, JarSigner delegate, org.apache.maven.plugin.logging.Log log)
-
sign
public int sign(Path jar, JarSigner.Options options) throws IOException
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
-
doNotResign
public static JarSigner doNotResign(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
-
throwException
public static JarSigner throwException(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
-
resignWithSameDigestAlgorithm
public static JarSigner resignWithSameDigestAlgorithm(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
-
resign
public static JarSigner resign(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
-
overwriteWithSameDigestAlgorithm
public static JarSigner overwriteWithSameDigestAlgorithm(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
-
-