Skip to content

Commit

Permalink
Removed obsolete crypto strength upgrade feature
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikramer committed Feb 22, 2025
1 parent 920848d commit df73f76
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 1,113 deletions.
59 changes: 0 additions & 59 deletions kse/src/main/java/org/kse/crypto/jcepolicy/CryptoStrength.java

This file was deleted.

59 changes: 0 additions & 59 deletions kse/src/main/java/org/kse/crypto/jcepolicy/JcePolicy.java

This file was deleted.

201 changes: 0 additions & 201 deletions kse/src/main/java/org/kse/crypto/jcepolicy/JcePolicyUtil.java

This file was deleted.

37 changes: 0 additions & 37 deletions kse/src/main/java/org/kse/gui/CreateApplicationGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@

import org.kse.AuthorityCertificates;
import org.kse.KSE;
import org.kse.crypto.jcepolicy.JcePolicyUtil;
import org.kse.gui.actions.CheckUpdateAction;
import org.kse.gui.crypto.DUpgradeCryptoStrength;
import org.kse.gui.dnd.DroppedFileHandler;
import org.kse.gui.error.DError;
import org.kse.gui.preferences.data.KsePreferences;
Expand Down Expand Up @@ -77,14 +75,6 @@ public void run() {

initLookAndFeel(ksePreferences);

// try to remove crypto restrictions
JcePolicyUtil.removeRestrictions();

// if crypto strength still limited, start upgrade assistant
if (JcePolicyUtil.isLocalPolicyCrytoStrengthLimited()) {
upgradeCryptoStrength();
}

final KseFrame kseFrame = new KseFrame();

// workaround to a bug in initializing JEditorPane that seems to be a 1-in-10000 problem
Expand Down Expand Up @@ -192,33 +182,6 @@ private static boolean checkJreVersion() {
return true;
}

private void upgradeCryptoStrength() {
JOptionPane.showMessageDialog(new JFrame(), res.getString("CryptoStrengthUpgrade.UpgradeRequired.message"),
KSE.getApplicationName(), JOptionPane.INFORMATION_MESSAGE);

DUpgradeCryptoStrength dUpgradeCryptoStrength = new DUpgradeCryptoStrength(new JFrame());
dUpgradeCryptoStrength.setLocationRelativeTo(null);
dUpgradeCryptoStrength.setVisible(true);

if (dUpgradeCryptoStrength.hasCryptoStrengthBeenUpgraded()) {
// Crypto strength upgraded - restart required to take effect
JOptionPane.showMessageDialog(new JFrame(), res.getString("CryptoStrengthUpgrade.Upgraded.message"),
KSE.getApplicationName(), JOptionPane.INFORMATION_MESSAGE);

KseRestart.restart();
System.exit(0);
} else if (dUpgradeCryptoStrength.hasCryptoStrengthUpgradeFailed()) {
// Manual install instructions have already been displayed
System.exit(1);
} else {
// Crypto strength not upgraded - exit as upgrade required
JOptionPane.showMessageDialog(new JFrame(), res.getString("CryptoStrengthUpgrade.NotUpgraded.message"),
KSE.getApplicationName(), JOptionPane.WARNING_MESSAGE);

System.exit(1);
}
}

private void integrateWithMacOs(KseFrame kseFrame)
throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException,
InstantiationException, IllegalAccessException, InvocationTargetException {
Expand Down
Loading

0 comments on commit df73f76

Please sign in to comment.