Catch any Exception when generating stored key.

This commit is contained in:
akwizgran
2020-01-10 16:15:56 +00:00
parent 72a391b506
commit f650b2236e

View File

@@ -399,7 +399,7 @@ class CryptoComponentImpl implements CryptoComponent {
kg.init(spec);
storedKey = kg.generateKey();
break;
} catch (GeneralSecurityException e1) {
} catch (Exception e1) {
if (LOG.isLoggable(INFO))
LOG.info("Could not generate key: " + e1);
// Fall back to next spec