RFR: 8373690: Unexpected Keystore message using jdk.crypto.disabledAlgorithms

Mikhail Yankelevich myankelevich at openjdk.org
Thu Feb 12 11:57:08 UTC 2026


On Fri, 6 Feb 2026 23:12:49 GMT, Valerie Peng <valeriep 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?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29619#discussion_r2798459827



More information about the security-dev mailing list