Skip to content

Commit

Permalink
Update SSL Toolbox Plugin to Version 0.1.3
Browse files Browse the repository at this point in the history
Updated the plugin version and release date, added support for viewing certificate files within the plugin. Extended file type support in PEMFileEditorProvider and updated 'build.gradle.kts' accordingly.
  • Loading branch information
cortiz committed Sep 14, 2024
1 parent 4a87c52 commit b8ba1d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "com.jmpeax"
version = "0.1.2-alpha"
version = "0.1.3"

repositories {
mavenCentral()
Expand Down
16 changes: 4 additions & 12 deletions src/main/java/com/jmpeax/ssltoolbox/pem/PEMFileEditorProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,10 @@
public class PEMFileEditorProvider implements FileEditorProvider {
@Override
public boolean accept(@NotNull Project project, @NotNull VirtualFile file) {
switch (Objects.requireNonNull(file.getExtension()).toLowerCase()) {
case "pem":
case "cer":
case "der":
case "crt":
case "ca-bundle":
case "p7b":
case "p7c":
return true;
default:
return false;
}
return switch (Objects.requireNonNull(file.getExtension()).toLowerCase()) {
case "pem", "cer", "der", "crt", "ca-bundle", "p7b", "p7c", "cert" -> true;
default -> false;
};
}

@Override
Expand Down
9 changes: 5 additions & 4 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
directly within the IntelliJ IDEA environment.</p>
]]></description>
<change-notes><![CDATA[
<h1>SSL Toolbox Plugin Update - Version 0.1.2-alpha</h1>
<p><strong>Release Date:</strong> September 10, 2024</p>
<h1>SSL Toolbox Plugin Update - Version 0.1.3</h1>
<p><strong>Release Date:</strong> September 13, 2024</p>
<div class="section">
<h2>New Features</h2>
<ul>
Expand All @@ -31,7 +31,8 @@
<p>Added support for Java Keystore (JKS) files,This allows users to manage JKS files directly from the plugin.</p>
</li>
<li>
<h3>Support Additional Certificate File Types</h3>
<h3>Support view Certificate Files</h3>
<p> Added support for viewing certificate files directly from the plugin. Including the Certificate chain</p>
</li>
</ul>
</div>
Expand All @@ -51,7 +52,7 @@
implementationClass="com.jmpeax.ssltoolbox.pem.PEMFileType"
fieldName="INSTANCE"
language=""
extensions="pem;cer;der;crt;ca-bundle;p7b;p7c"/>
extensions="pem;cer;der;crt;ca-bundle;p7b;p7c;cert"/>
<fileEditorProvider implementation="com.jmpeax.ssltoolbox.jks.JKSFileEditorProvider" />
<fileType name="JKS file" implementationClass="com.jmpeax.ssltoolbox.jks.JKSFileType" extensions="jks;p12"/>

Expand Down

0 comments on commit b8ba1d2

Please sign in to comment.