Please review this fix to add a check to the default implementation of KeyStore setEntry and getEntry (in KeyStoreSpi). An exception is thrown if a password protection algorithm is specified. An existing test has been updated to validate the fix.
Keystore implementations that support a user-supplied password protection algorithm override the default implementation of these setEntry/getEntry methods and are unaffected by this fix. Thanks. Bug: https://bugs.openjdk.java.net/browse/JDK-8167371 Webrev: http://cr.openjdk.java.net/~vinnie/8167371/webrev.00/