Changeset 30745 in osm for applications/editors/josm/plugins/trustosm/src
- Timestamp:
- 2014-10-19T04:22:09+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/TrustOSMplugin.java
r30724 r30745 9 9 import java.io.IOException; 10 10 import java.io.InputStream; 11 import java.security.InvalidKeyException; 12 import java.security.NoSuchAlgorithmException; 11 13 import java.util.Enumeration; 12 14 import java.util.HashMap; … … 15 17 import java.util.jar.JarFile; 16 18 19 import javax.crypto.BadPaddingException; 17 20 import javax.crypto.Cipher; 21 import javax.crypto.IllegalBlockSizeException; 22 import javax.crypto.NoSuchPaddingException; 18 23 import javax.crypto.SecretKey; 19 24 import javax.crypto.spec.SecretKeySpec; … … 57 62 super(info); 58 63 // check if the jarlibs are already extracted or not and extract them if not 59 if (!Main.pref.getBoolean("trustosm.jarLibsExtracted")) {64 /*if (!Main.pref.getBoolean("trustosm.jarLibsExtracted")) { 60 65 Main.pref.put("trustosm.jarLibsExtracted", extractFiles("trustosm","lib")); 61 66 Main.pref.put("trustosm.jarLibsExtracted", extractFiles("trustosm","resources")); 62 } 67 }*/ 68 extractFiles("trustosm","lib"); 69 extractFiles("trustosm","resources"); 63 70 64 71 refreshMenu(); … … 93 100 c.init(Cipher.ENCRYPT_MODE, key192); 94 101 c.doFinal(data); 95 } catch ( Exception e) {96 //e.printStackTrace();97 System.err.println("Warning: It seems that the Unrestricted Policy Files are not available in this JVM. So high level crypto is not allowed. Problems may occure.");102 } catch (InvalidKeyException e) { 103 Main.warn("It seems that the Unrestricted Policy Files are not available in this JVM. "+ 104 "So high level crypto is not allowed. Problems may occur."); 98 105 //extractFiles("trustosm","jce"); 99 106 installUnrestrictedPolicyFiles(); 107 } catch (BadPaddingException | IllegalBlockSizeException | NoSuchPaddingException | NoSuchAlgorithmException e) { 108 Main.error(e); 100 109 } 101 110 }
Note:
See TracChangeset
for help on using the changeset viewer.