Skip to content

Commit

Permalink
Merge pull request #1861 from Lonzak/main
Browse files Browse the repository at this point in the history
[TIKA-4283] - Implemented support for JKS Java Keystore format
  • Loading branch information
THausherr committed Jul 24, 2024
1 parent 954f642 commit 7bcbeba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5189,6 +5189,15 @@
<match value="-----BEGIN EC PARAMETERS-----" type="string" offset="0"/>
</magic>
</mime-type>
<mime-type type="application/x-java-keystore">
<_comment>Java Keystore</_comment>
<tika:link>https://en.wikipedia.org/wiki/Java_KeyStore</tika:link>
<magic priority="50">
<!-- magic byte: https://en.wikipedia.org/wiki/List_of_file_signatures -->
<match value="0xfeedfeed" type="string" offset="0:4"/>
</magic>
<glob pattern="*.jks" />
</mime-type>

<mime-type type="application/x-xfig">
<glob pattern="*.fig"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,7 @@ public void testCertificatesKeys() throws Exception {
// Once solved, see TIKA-3784, ought to work for name or data
//assertType("application/x-pkcs12", "testRSAKEYandCERT.p12");
//assertTypeByData("application/x-pkcs12", "testRSAKEYandCERT.p12"); // pass=tika
assertTypeByData("application/x-java-keystore", "KeyStore.jks");
}

@Test
Expand Down
Binary file not shown.

0 comments on commit 7bcbeba

Please sign in to comment.