Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8194307

KeyStore#getInstance with custom LoadStoreParameter succeeds with invalid password

XMLWordPrintable

    • b41
    • Verified

        KeyStore#getInstance(File, LoadStoreParameter) method still does not throw IOException with the custom LoadStoreParameter that has a PasswordProtection with a wrong password.

        Please see the simple “ready-to-run” test case that I tested with JDK 10 b36 which still does not throw IOException with custom LoadStoreParameter when given a wrong password.

        Please place the java file and the jck_keystore.pkcs12 keystore in a directory, go to the directory , compile the java file and
        • Run “java -cp . KeyStoreCustomLoadParamBug . load” it will not throw IOException
        • Run “java -cp . KeyStoreCustomLoadParamBug . noload” it will throw IOException

        Test case throws “IOException” without a LoadStoreParameter as expected however it does not throw IOException with custom LoadStoreParameter

          1. jck_keystore.pkcs12
            2 kB
            Bharath Nallakaluva
          2. KeyStoreCustomLoadParamBug.java
            2 kB
            Bharath Nallakaluva

              mullan Sean Mullan
              bnallakaluva Bharath Nallakaluva (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: