public final class JarUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MANIFEST_ATTR_APPLICATION_LIBRARY_ALLOWABLE_CODEBASE |
static String |
MANIFEST_ATTR_APPLICATION_NAME |
static String |
MANIFEST_ATTR_CALLER_ALLOWABLE_CODEBASE |
static String |
MANIFEST_ATTR_CODEBASE |
static String |
MANIFEST_ATTR_PERMISSIONS |
static String |
MANIFEST_ATTR_TRUSTED_LIBRARY |
static String |
MANIFEST_ATTR_TRUSTED_ONLY |
static String |
MANIFEST_JAR_ENTRY |
| Modifier and Type | Method and Description |
|---|---|
static void |
archiveModifier(File inJar,
File outJar,
Integer compressionLevel,
boolean unsign,
Attributes attributes)
Removes any existing signatures from the specified JAR file.
|
static Manifest |
getManifest(File file) |
static void |
main(String[] args) |
static void |
unsignArchive(File jarFile) |
public static final String MANIFEST_JAR_ENTRY
public static final String MANIFEST_ATTR_PERMISSIONS
public static final String MANIFEST_ATTR_CODEBASE
public static final String MANIFEST_ATTR_APPLICATION_NAME
public static final String MANIFEST_ATTR_TRUSTED_ONLY
public static final String MANIFEST_ATTR_TRUSTED_LIBRARY
public static final String MANIFEST_ATTR_APPLICATION_LIBRARY_ALLOWABLE_CODEBASE
public static final String MANIFEST_ATTR_CALLER_ALLOWABLE_CODEBASE
public static void unsignArchive(File jarFile) throws IOException
IOExceptionpublic static void archiveModifier(File inJar, File outJar, Integer compressionLevel, boolean unsign, Attributes attributes) throws IOException
inJar - The JAR file to unsign, must not be null.unsignArchive - If the unsigning failed.IOExceptionpublic static Manifest getManifest(File file) throws IOException
IOExceptionCopyright © 2013–2015 Codehaus. All rights reserved.