RFR: 8373690: Unexpected Keystore message using jdk.crypto.disabledAlgorithms
Valerie Peng
valeriep at openjdk.org
Thu Feb 19 22:11:42 UTC 2026
On Thu, 12 Feb 2026 11:54:40 GMT, Mikhail Yankelevich <myankelevich at openjdk.org> wrote:
>> This PR changes the `KeyStore.getInstance(File, ...) method` to use a different exception message when the keystore type is found but disabled through the "jdk.crypto.disabledAlgorithms" property.
>>
>> Thanks in advance for the review~
>> Valerie
>
> test/jdk/java/security/KeyStore/DisabledKnownType.java line 41:
>
>> 39: try {
>> 40: KeyStore ks = KeyStore.getInstance(new java.io.File(cacertsPath),
>> 41: "changeit".toCharArray());
>
> Shouldn't this test throw exception if nothing is thrown?
Yes, good catch. Will fix.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29619#discussion_r2830398499
More information about the security-dev
mailing list