public class JarUtils extends Object
| Constructor and Description |
|---|
JarUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkIfJarWithManifest(File file)
A simple check if a file is a Jar and contains the META-INF/MANIFEST.MF file.
|
static boolean |
isSigned(File toSign,
String keystorePath,
String keystorePass,
String alias)
This method checks every single class of the given jar, but classes only, no other resources.
|
static void |
unsignJar(File file)
Removes the DSA, RSA and SF files from the META-INF folder from a zip file.
|
public static boolean checkIfJarWithManifest(File file) throws IOException
file - DOCUMENT ME!IOException - DOCUMENT ME!public static void unsignJar(File file)
Warning: Do not use with Java 6 or older.
file - DOCUMENT ME!public static boolean isSigned(File toSign, String keystorePath, String keystorePass, String alias)
keystorePath and
alias.toSign - the jar file to verifykeystorePath - DOCUMENT ME!keystorePass - DOCUMENT ME!alias - DOCUMENT ME!IllegalArgumentException - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.