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

implicit assumption in keymanagerfactory: keys are protected with same password

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: unknown, 6
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic, x86
    • OS:
      generic, windows_xp

      Description

      The KeyManagerFactory API right now has room for one password, therefore
      if there are any keys in a keystore which are protected by a different password,
      we throw:

      java.security.UnrecoverableKeyException: Cannot recover key
      at sun.security.provider.KeyProtector.recover(KeyProtector.java:304)
      at ...

      The workaround is to have all entries protected by the same key, but
      this may not be approrpriate in all situations. Either the API should
      change, or this should be documented.

      Brad

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andreas Andreas Sterbenz
                Reporter:
                wetmore Bradford Wetmore
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: