RFR: 8346285: Update jarsigner compatibility test for change in default digest algorithm
Weijun Wang
weijun at openjdk.org
Mon Dec 16 15:08:42 UTC 2024
On Mon, 16 Dec 2024 14:57:36 GMT, Matthew Donovan <mdonovan at openjdk.org> wrote:
> In this small PR, I updated the jarsigner compatibility test to handle the difference in default digest algorithms between JDK versions. The previous default was SHA-256 but has been updated to SHA-384.
test/jdk/sun/security/tools/jarsigner/compatibility/Compatibility.java line 1442:
> 1440:
> 1441: String expectedTsaDigestAlg() {
> 1442: return tsaDigestAlgorithm != null ? tsaDigestAlgorithm : "SHA-256";
You can actually get it from `jdk.security.jarsigner.JarSigner.Builder.getDefaultDigestAlgorithm()`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22765#discussion_r1886978460
More information about the security-dev
mailing list