org.apache.tools.ant.taskdefs

Class VerifyJar

public class VerifyJar extends AbstractJarSignerTask

JAR verification task. For every JAR passed in, we fork jarsigner to verify that it is correctly signed. This is more rigorous than just checking for the existence of a signature; the entire certification chain is tested

Since: Ant 1.7

Field Summary
static StringERROR_NO_FILE
no file message {@value}
static StringERROR_NO_VERIFY
Error output if there is a failure to verify the jar.
Method Summary
voidexecute()
verify our jar files
voidsetCertificates(boolean certificates)
Ask for certificate information to be printed

Field Detail

ERROR_NO_FILE

public static final String ERROR_NO_FILE
no file message {@value}

ERROR_NO_VERIFY

public static final String ERROR_NO_VERIFY
Error output if there is a failure to verify the jar.

Method Detail

execute

public void execute()
verify our jar files

Throws: BuildException on error.

setCertificates

public void setCertificates(boolean certificates)
Ask for certificate information to be printed

Parameters: certificates if true print certificates.