public class JarSignerUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isArchiveSigned(File jarFile)
Scans an archive for existing signatures.
|
static boolean |
isZipFile(File file)
Checks whether the specified file is a JAR file.
|
static void |
unsignArchive(File jarFile)
Removes any existing signatures from the specified JAR file.
|
public static boolean isZipFile(File file)
file
- The file to check, must not be null
.true
if the file looks like a ZIP file, false
otherwise.public static void unsignArchive(File jarFile) throws IOException
jarFile
- The JAR file to unsign, must not be null
.IOException
public static boolean isArchiveSigned(File jarFile) throws IOException
jarFile
- The archive to scan, must not be null
.true
, if the archive contains at least one signature file; false
, if the archive
does not contain any signature files.IOException
- if scanning jarFile
fails.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.