Skip to content

Commit

Permalink
Actually use __flexiPromoted for loadKeystore
Browse files Browse the repository at this point in the history
  • Loading branch information
simlei committed Aug 25, 2020
1 parent 82e3b99 commit 280dcf8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,15 @@ private void createDefaultKeystore() {
private void loadKeystore() {
InputStream is = null;
try {
ProviderManager2.getInstance().setProviders__flexiPromoted();

is = new BufferedInputStream(platformKeystore.openInputStream(EFS.NONE, null));
keyStore.load(is, KEYSTORE_PASSWORD);
} catch (Exception e) {
LogUtil.logError(KeyStorePlugin.PLUGIN_ID, e);
createDefaultKeystore();
} finally {
ProviderManager2.getInstance().setProviders__sunPromoted();
if (is != null) {
try {
is.close();
Expand Down

0 comments on commit 280dcf8

Please sign in to comment.