public abstract class JarResigner extends java.lang.Object implements JarSigner
Modifier and Type | Class and Description |
---|---|
private static class |
JarResigner.DoNotResign |
private static class |
JarResigner.OverwriteSignature |
private static class |
JarResigner.OverwriteSignatureWithSameDigestAlg |
private static class |
JarResigner.Resign |
private static class |
JarResigner.ResignWithSameDigestAlg |
static class |
JarResigner.Strategy |
private static class |
JarResigner.ThrowException |
JarSigner.Options
Modifier and Type | Field and Description |
---|---|
private JarSigner |
delegate |
private static java.lang.String |
DIGEST_ATTRIBUTE_SUFFIX |
private org.apache.maven.plugin.logging.Log |
log |
Constructor and Description |
---|
JarResigner(JarSigner delegate,
org.apache.maven.plugin.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
static 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 java.util.Set<MessageDigestAlgorithm> |
getAllUsedDigestAlgorithm(java.nio.file.Path jar) |
(package private) static MessageDigestAlgorithm |
getDigestAlgorithmToReuse(java.nio.file.Path jar) |
(package private) static boolean |
hasManifestDigest(java.util.jar.Attributes entryAttributes) |
(package private) static boolean |
isAlreadySigned(java.nio.file.Path jar) |
private static boolean |
isBlockOrSF(java.lang.String entryName) |
(package private) 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) |
(package private) abstract int |
resign(java.nio.file.Path jar,
JarSigner.Options options) |
static JarSigner |
resignWithSameDigestAlgorithm(JarSigner jarSigner,
org.apache.maven.plugin.logging.Log log) |
int |
sign(java.nio.file.Path jar,
JarSigner.Options options)
Sign the given Jar file.
|
static JarSigner |
throwException(JarSigner jarSigner,
org.apache.maven.plugin.logging.Log log) |
private static final java.lang.String DIGEST_ATTRIBUTE_SUFFIX
private final JarSigner delegate
private final org.apache.maven.plugin.logging.Log log
JarResigner(JarSigner delegate, org.apache.maven.plugin.logging.Log log)
final org.apache.maven.plugin.logging.Log log()
public static JarSigner create(JarResigner.Strategy strategy, JarSigner delegate, org.apache.maven.plugin.logging.Log log)
JarSigner delegate()
public int sign(java.nio.file.Path jar, JarSigner.Options options) throws java.io.IOException
JarSigner
abstract int resign(java.nio.file.Path jar, JarSigner.Options options) throws java.io.IOException
java.io.IOException
static boolean isAlreadySigned(java.nio.file.Path jar) throws java.io.IOException
java.io.IOException
static boolean hasManifestDigest(java.util.jar.Attributes entryAttributes)
private static boolean isBlockOrSF(java.lang.String entryName)
public static JarSigner doNotResign(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
public static JarSigner throwException(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
public static JarSigner resignWithSameDigestAlgorithm(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
public static JarSigner overwriteWithSameDigestAlgorithm(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
public static JarSigner overwrite(JarSigner jarSigner, org.apache.maven.plugin.logging.Log log)
static java.util.Set<MessageDigestAlgorithm> getAllUsedDigestAlgorithm(java.nio.file.Path jar) throws java.io.IOException
java.io.IOException
static MessageDigestAlgorithm getDigestAlgorithmToReuse(java.nio.file.Path jar) throws java.io.IOException
java.io.IOException