A mechanism to automatically detect a keystore type is required for the existing KeyStore API.
This is needed to ease the migration from JKS keystores to PKCS12 keystores without disturbing existing applications. The mechanism should allow keystore applications to interoperate with both keystore types without the need for any changes to application code.
Release Note comment:
Keystore Compatibility Mode
To aid interoperability, the Java keystore type JKS now supports keystore compatibility mode by default.
This mode enables JKS keystores to access both JKS and PKCS12 file formats. To disable keystore compatibility
mode set the Security property 'keystore.type.compat' to the string value 'false'.