Class VerifyJar

All Implemented Interfaces:
java.lang.Cloneable

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 Details

    • ERROR_NO_FILE

      public static final java.lang.String ERROR_NO_FILE
      no file message "Not found :"
      See Also:
      Constant Field Values
    • ERROR_NO_VERIFY

      public static final java.lang.String ERROR_NO_VERIFY
      Error output if there is a failure to verify the jar.
      See Also:
      Constant Field Values
  • Constructor Details

    • VerifyJar

      public VerifyJar()
  • Method Details

    • setCertificates

      public void setCertificates​(boolean certificates)
      Ask for certificate information to be printed
      Parameters:
      certificates - if true print certificates.
    • execute

      public void execute() throws BuildException
      verify our jar files
      Overrides:
      execute in class Task
      Throws:
      BuildException - on error.
    • beginExecution

      protected void beginExecution()
      Description copied from class: AbstractJarSignerTask
      init processing logic; this is retained through our execution(s)
      Overrides:
      beginExecution in class AbstractJarSignerTask
      Since:
      1.10.3
    • endExecution

      protected void endExecution()
      Description copied from class: AbstractJarSignerTask
      any cleanup logic
      Overrides:
      endExecution in class AbstractJarSignerTask
      Since:
      1.10.3