[9] RFR 8167371: KeyStoreSpi.engineSetEntry should throw an Exception if password protection alg is specified

Vincent Ryan vincent.x.ryan at oracle.com
Thu Oct 13 10:33:31 UTC 2016

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.


Bug: https://bugs.openjdk.java.net/browse/JDK-8167371
Webrev: http://cr.openjdk.java.net/~vinnie/8167371/webrev.00/

More information about the security-dev mailing list