PBKDF2WithSHA512-256 SecretKeyFactory not available error while using JDK11.0.17

159 Views Asked by At

We have recently upgraded to JDK 11.0.17 and when I try to call -

SecretKeyFactory.getInstance("PBKDF2WithSHA512-256");

I am getting the following exception -

java.security.NoSuchAlgorithmException: PBKDF2WithSHA512-256 SecretKeyFactory not available

The same code is working when I use JDK 11.0.1. Has the behaviour changed with the JDK upgrade? If so, can anyone suggest a workaround for this?

0

There are 0 best solutions below