You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

verifyjar.html 5.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <!DOCTYPE html>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <html lang="en">
  17. <head>
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>VerifyJar Task</title>
  20. </head>
  21. <body>
  22. <h2 id="verifyjar">VerifyJar</h2>
  23. <h3>Description</h3>
  24. <p>Verifies JAR files with
  25. the <a href="https://docs.oracle.com/javase/8/docs/technotes/tools/windows/jarsigner.html"
  26. target="_top"><kbd>jarsigner</kbd></a> command line tool. It will take a named file in
  27. the <var>jar</var> attribute. Nested paths are also supported.</p>
  28. <h3>Parameters</h3>
  29. <table class="attr">
  30. <tr>
  31. <th scope="col">Attribute</th>
  32. <th scope="col">Description</th>
  33. <th scope="col">Required</th>
  34. </tr>
  35. <tr>
  36. <td>jar</td>
  37. <td>the jar file to verify</td>
  38. <td>Yes, unless nested paths have been used</td>
  39. </tr>
  40. <tr>
  41. <td>alias</td>
  42. <td>the alias to verify under</td>
  43. <td>Yes</td>
  44. </tr>
  45. <tr>
  46. <td>storepass</td>
  47. <td>password for keystore integrity.
  48. Note that
  49. jarsigner does not read the password from stdin during
  50. verification, so the password must be send via a command line
  51. interface and may be visible to other users of the system.</td>
  52. <td>No</td>
  53. </tr>
  54. <tr>
  55. <td>keystore</td>
  56. <td>keystore location</td>
  57. <td>No</td>
  58. </tr>
  59. <tr>
  60. <td>storetype</td>
  61. <td>keystore type</td>
  62. <td>No</td>
  63. </tr>
  64. <tr>
  65. <td>keypass</td>
  66. <td>password for private key (if different)</td>
  67. <td>No</td>
  68. </tr>
  69. <tr>
  70. <td>certificates</td>
  71. <td>(<q>true|false</q>) display information about certificates</td>
  72. <td>No; default <q>false</q></td>
  73. </tr>
  74. <tr>
  75. <td>verbose</td>
  76. <td>(<q>true|false</q>) verbose output when verifying</td>
  77. <td>No; default <q>false</q></td>
  78. </tr>
  79. <tr>
  80. <td>strict</td>
  81. <td>(<q>true|false</q>) strict checking when verifying.<br/><em>since Ant 1.9.1</em>.</td>
  82. <td>No; default <q>false</q></td>
  83. </tr>
  84. <tr>
  85. <td>maxmemory</td>
  86. <td>Specifies the maximum memory the <kbd>jarsigner</kbd> JVM will use. Specified in the style
  87. of standard Java memory specs (e.g. <q>128m</q> = 128 MBytes)</td>
  88. <td>No</td>
  89. </tr>
  90. <tr>
  91. <td>executable</td>
  92. <td>Specify a particular <kbd>jarsigner</kbd> executable to use in place of the default binary
  93. (found in the same JDK as Apache Ant is running in).<br/> Must support the same command line
  94. options as the Sun JDK <kbd>jarsigner</kbd> command. <em>since Ant 1.8.0</em>.</td>
  95. <td>No</td>
  96. </tr>
  97. <tr>
  98. <td>providername</td>
  99. <td>name of a cryptographic service provider's name
  100. when listed in the security properties file.
  101. <em>since Ant 1.10.6</em>.</td>
  102. <td>No</td>
  103. </tr>
  104. <tr>
  105. <td>providerclass</td>
  106. <td>name of a cryptographic service provider's master
  107. class file when the service provider is not listed in the security
  108. properties file.
  109. <em>since Ant 1.10.6</em>.</td>
  110. <td>No</td>
  111. </tr>
  112. <tr>
  113. <td>providerarg</td>
  114. <td>Represents an optional string input argument for
  115. the constructor of provider_class_name. Ignored
  116. if <code>providerclass</code> is not set.
  117. <em>since Ant 1.10.6</em>.</td>
  118. <td>No</td>
  119. </tr>
  120. </table>
  121. <h3>Parameters as nested elements</h3>
  122. <table class="attr">
  123. <tr>
  124. <th scope="col">Attribute</th>
  125. <th scope="col">Description</th>
  126. <th scope="col">Required</th>
  127. </tr>
  128. <tr>
  129. <td>path</td>
  130. <td>path of JAR files to verify. <em>since Ant 1.7</em></td>
  131. <td>No</td>
  132. </tr>
  133. <tr>
  134. <td>fileset</td>
  135. <td>fileset of JAR files to verify.</td>
  136. <td>No</td>
  137. </tr>
  138. <tr>
  139. <td>sysproperty</td>
  140. <td>JVM system properties, with the syntax of Ant <a href="exec.html#env">environment
  141. variables</a></td>
  142. <td>No, and only one can be supplied</td>
  143. </tr>
  144. <tr>
  145. <td>arg</td>
  146. <td>Use this to specify a <kbd>keytool</kbd>
  147. <a href="../using.html#arg">command line argument</a> not
  148. explicitly supported via an attribute.
  149. <em>since Ant 1.10.6</em>.</td>
  150. <td>No</td>
  151. </tr>
  152. </table>
  153. <h3>Examples</h3>
  154. <p>Verify the <samp>ant.jar</samp> with alias <q>apache-group</q> accessing the keystore and private
  155. key via <q>secret</q> password.</p>
  156. <pre>
  157. &lt;verifyjar jar=&quot;${dist}/lib/ant.jar&quot;
  158. alias=&quot;apache-group&quot; storepass=&quot;secret&quot;/&gt;</pre>
  159. </body>
  160. </html>