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

Support loading a keystore with a custom KeyStore.LoadStoreParameter class

    Details

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

      Backports

        Description

        The KeyStore.load method supports loading a keystore with a KeyStore.LoadStoreParameter that encapsulates the keystore password.

        Currently, supplying a custom LoadStoreParameter class results in an UnsupportedOperationException.
        For example, supplying the following custom class should not throw an exception:


            static class MyLoadStoreParameter implements KeyStore.LoadStoreParameter {
                private KeyStore.ProtectionParameter protection;

                MyLoadStoreParameter (KeyStore.ProtectionParameter protection) {
                    this.protection = protection;
                }

                public KeyStore.ProtectionParameter getProtectionParameter() {
                    return protection;
                }
            }

              :
            myKeystore.load(new MyLoadStoreParameter(
                new KeyStore.PasswordProtection(KEYSTORE_PASSWORD));

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vinnie Vincent Ryan
                  Reporter:
                  vinnie Vincent Ryan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: