Bug 60665 - Add support for the "-tsadigestalg" option for the SignJar task
Summary: Add support for the "-tsadigestalg" option for the SignJar task
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.10.0
Hardware: PC Mac OS X 10.1
: P2 enhancement (vote)
Target Milestone: 1.10.2
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-30 16:46 UTC by Eric Friess
Modified: 2017-03-16 17:04 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Friess 2017-01-30 16:46:03 UTC
The SignJar task should support the "-tsadigestalg" option introduced with JDK 8u101. 

See http://www.oracle.com/technetwork/java/javase/8u101-relnotes-3021761.html for details. Here is an excerpt from the release notes in case the site can't be reached:

"Support added to jarsigner for specifying timestamp hash algorithm
A new -tsadigestalg option is added to jarsigner to specify the message digest algorithm that is used to generate the message imprint to be sent to the TSA server. In older JDK releases, the message digest algorithm used was SHA-1. If this new option is not specified, SHA-256 will be used on JDK 7 Updates and later JDK family versions. On JDK 6 Updates, SHA-1 will remain the default but a warning will be printed to the standard output stream."

Also see https://bugs.openjdk.java.net/browse/JDK-8038837.
Comment 1 Stefan Bodewig 2017-03-16 17:04:54 UTC
has been added with commit c11dcf2