RFR: 8244336: Restrict algorithms at JCE layer [v6]

Valerie Peng valeriep at openjdk.org
Thu Aug 7 20:18:14 UTC 2025


On Thu, 7 Aug 2025 17:43:53 GMT, Artur Barashev <abarashev at openjdk.org> wrote:

>> Valerie Peng has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Address review comments from Artur and added a regression test for
>>   invalid property values.
>
> test/jdk/java/security/Security/SecurityPropFile/InvalidCryptoDisabledAlgos.java line 52:
> 
>> 50:             MessageDigest md = MessageDigest.getInstance("SHA-512");
>> 51:             throw new RuntimeException("Should Fail!");
>> 52:         } catch (ExceptionInInitializerError e) {
> 
> Nit: Consider using `runAndCheckException` from `/test/lib`

Yes, good suggestion, thanks~

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/26377#discussion_r2261311950


More information about the security-dev mailing list