From a65d67e160472b7ffe15a689198a3375ba8ca9e7 Mon Sep 17 00:00:00 2001 From: Carlos Ortiz Date: Wed, 4 Sep 2024 23:33:53 -0600 Subject: [PATCH] Add JKS file support and streamline package structure Introduced support for JKS files, including editor and view implementations. Refactored existing packages for clearer structure, updating PEM references accordingly. Removed unnecessary quotes in properties files to ensure text consistency. --- .idea/workspace.xml | 47 +++- .../jmpeax/ssltoolbox/jks/JKSFileEditor.java | 45 ++++ .../ssltoolbox/jks/JKSFileEditorProvider.java | 37 +++ .../jmpeax/ssltoolbox/jks/JKSFileType.java | 36 +++ .../com/jmpeax/ssltoolbox/jks/JKSView.java | 216 ++++++++++++++++++ .../ssltoolbox/{ui => pem}/PEMFileEditor.java | 6 +- .../{ui => pem}/PEMFileEditorProvider.java | 2 +- .../{fileTypes => pem}/PEMFileType.java | 2 +- .../ssltoolbox/{ui => }/pem/PemView.java | 4 +- .../ssltoolbox/svc/CertificateHelper.java | 29 ++- .../ssltoolbox/{ui => utils}/Messages.java | 2 +- .../com/jmpeax/ssltoolbox/utils/Prompts.java | 18 ++ src/main/resources/META-INF/plugin.xml | 6 +- src/main/resources/messages_en.properties | 6 +- test.p12 | Bin 0 -> 9565 bytes 15 files changed, 432 insertions(+), 24 deletions(-) create mode 100644 src/main/java/com/jmpeax/ssltoolbox/jks/JKSFileEditor.java create mode 100644 src/main/java/com/jmpeax/ssltoolbox/jks/JKSFileEditorProvider.java create mode 100644 src/main/java/com/jmpeax/ssltoolbox/jks/JKSFileType.java create mode 100644 src/main/java/com/jmpeax/ssltoolbox/jks/JKSView.java rename src/main/java/com/jmpeax/ssltoolbox/{ui => pem}/PEMFileEditor.java (94%) rename src/main/java/com/jmpeax/ssltoolbox/{ui => pem}/PEMFileEditorProvider.java (97%) rename src/main/java/com/jmpeax/ssltoolbox/{fileTypes => pem}/PEMFileType.java (95%) rename src/main/java/com/jmpeax/ssltoolbox/{ui => }/pem/PemView.java (98%) rename src/main/java/com/jmpeax/ssltoolbox/{ui => utils}/Messages.java (93%) create mode 100644 src/main/java/com/jmpeax/ssltoolbox/utils/Prompts.java create mode 100644 test.p12 diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 053005c..a6ba91a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,9 +4,22 @@