|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.AbstractJarSignerTask org.apache.tools.ant.taskdefs.VerifyJar
public class VerifyJar
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
Field Summary | |
---|---|
static java.lang.String |
ERROR_NO_FILE
no file message "Not found :" |
static java.lang.String |
ERROR_NO_VERIFY
Error output if there is a failure to verify the jar. |
Fields inherited from class org.apache.tools.ant.taskdefs.AbstractJarSignerTask |
---|
alias, ERROR_NO_SOURCE, filesets, jar, JARSIGNER_COMMAND, keypass, keystore, maxMemory, storepass, storetype, verbose |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
VerifyJar()
|
Method Summary | |
---|---|
void |
execute()
verify our jar files |
void |
setCertificates(boolean certificates)
Ask for certificate information to be printed |
Methods inherited from class org.apache.tools.ant.taskdefs.AbstractJarSignerTask |
---|
addFileset, addSysproperty, addValue, beginExecution, bindToKeystore, createJarSigner, createPath, createUnifiedSourcePath, createUnifiedSources, declareSysProperty, endExecution, getRedirector, hasResources, setAlias, setCommonOptions, setJar, setKeypass, setKeystore, setMaxmemory, setStorepass, setStoretype, setVerbose |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ERROR_NO_FILE
public static final java.lang.String ERROR_NO_VERIFY
Constructor Detail |
---|
public VerifyJar()
Method Detail |
---|
public void setCertificates(boolean certificates)
certificates
- if true print certificates.public void execute() throws BuildException
execute
in class Task
BuildException
- on error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |