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

Need to find a place for all constants used in Sun security providers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 7
    • security-libs
    • None

      Constant values, such as default keysizes for private keys and secret keys, are hardcoded in various places of many source files. This makes it difficult to maintain them in a consistent and manageable way. It's also difficult to synchronize the documentation and the implementation.

      This issue becomes more annoying when we try to increase the default keysize for all RSA keypair generators due to the weakness of current standard. Since multiple providers include this function and each has its own default keysize hardcoded somewhere by different code writers, it's very easy to miss one.

      This RFE attempts to add a sun.security.providers.Constants class to hold constants used in all Sun JDK security providers. The scope of what constants need to be extracted and the format of the names are yet to be decided.

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: