RFR: 8341927: Remove hardcoded SunJCE provider

Sean Mullan mullan at openjdk.org
Mon Oct 21 12:44:12 UTC 2024


On Wed, 16 Oct 2024 18:47:44 GMT, Matthew Donovan <mdonovan at openjdk.org> wrote:

> In this PR, I removed hard-coded security providers and replaced them with a system property, test.provider.name. If the property is not specified, the provider originally used in the test is used:
> 
> Cipher c = Cipher.getInstance("AES/GCM/NoPadding", System.getProperty("test.provider.name", "SunJCE"));

You are changing more than SunJCE providers, so the title of this bug should not be specific to SunJCE. Suggest: "Replace hardcoded security providers with new test.provider.name system property".

Are there any cases where a test has more than one hardcoded provider?

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

PR Comment: https://git.openjdk.org/jdk/pull/21551#issuecomment-2426563352


More information about the security-dev mailing list