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.