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

KeyStore#getInstance with custom LoadStoreParameter succeeds with invalid password

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b41
    • Verification:
      Verified

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: