Lines 110-115
Link Here
|
110 |
private boolean force = false; |
110 |
private boolean force = false; |
111 |
|
111 |
|
112 |
/** |
112 |
/** |
|
|
113 |
* signature algorithm |
114 |
*/ |
115 |
private String sigAlg; |
116 |
|
117 |
/** |
118 |
* digest algorithm |
119 |
*/ |
120 |
private String digestAlg; |
121 |
|
122 |
/** |
113 |
* error string for unit test verification: {@value} |
123 |
* error string for unit test verification: {@value} |
114 |
*/ |
124 |
*/ |
115 |
public static final String ERROR_TODIR_AND_SIGNEDJAR |
125 |
public static final String ERROR_TODIR_AND_SIGNEDJAR |
Lines 276-281
Link Here
|
276 |
} |
286 |
} |
277 |
|
287 |
|
278 |
/** |
288 |
/** |
|
|
289 |
* Signature Algorithm; optional |
290 |
* |
291 |
* @param sigAlg the signature algorithm |
292 |
*/ |
293 |
public void setSigAlg(String sigAlg) { |
294 |
this.sigAlg = sigAlg; |
295 |
} |
296 |
|
297 |
/** |
298 |
* Signature Algorithm; optional |
299 |
*/ |
300 |
public String getSigAlg() { |
301 |
return sigAlg; |
302 |
} |
303 |
|
304 |
/** |
305 |
* Digest Algorithm; optional |
306 |
* |
307 |
* @param digestAlg the digest algorithm |
308 |
*/ |
309 |
public void setDigestAlg(String digestAlg) { |
310 |
this.digestAlg = digestAlg; |
311 |
} |
312 |
|
313 |
/** |
314 |
* Digest Algorithm; optional |
315 |
*/ |
316 |
public String getDigestAlg() { |
317 |
return digestAlg; |
318 |
} |
319 |
|
320 |
/** |
279 |
* sign the jar(s) |
321 |
* sign the jar(s) |
280 |
* |
322 |
* |
281 |
* @throws BuildException on errors |
323 |
* @throws BuildException on errors |
Lines 420-425
Link Here
|
420 |
addValue(cmd, "-sectionsonly"); |
462 |
addValue(cmd, "-sectionsonly"); |
421 |
} |
463 |
} |
422 |
|
464 |
|
|
|
465 |
if (sigAlg != null) { |
466 |
addValue(cmd, "-sigalg"); |
467 |
addValue(cmd, sigAlg); |
468 |
} |
469 |
|
470 |
if (digestAlg != null) { |
471 |
addValue(cmd, "-digestalg"); |
472 |
addValue(cmd, digestAlg); |
473 |
} |
474 |
|
423 |
//add -tsa operations if declared |
475 |
//add -tsa operations if declared |
424 |
addTimestampAuthorityCommands(cmd); |
476 |
addTimestampAuthorityCommands(cmd); |
425 |
|
477 |
|