F-15062: reword PKCS12-to-WKS mapping comment in WolfCryptProvider to refer to PKCS12 instead of JKS

pull/299/head
Chris Conlon 2026-10-16 10:21:23 -06:00
parent 2aafafd215
commit 59721dd20c
1 changed files with 4 additions and 3 deletions

View File

@ -1391,9 +1391,10 @@ public final class WolfCryptProvider extends Provider {
/* Fake mapping of PKCS12 to WKS type. Use with caution! This is
* usually used when FIPS compliance is needed but code cannot be
* changed that creates a JKS KeyStore object type. Any files loaded
* into this fake JKS KeyStore MUST be of actual type WKS or failures
* will happen. Remove service first here in case of refresh. */
* changed that creates a PKCS12 KeyStore object type. Any files
* loaded into this fake PKCS12 KeyStore MUST be of actual type WKS
* or failures will happen. Remove service first here in case of
* refresh. */
remove("KeyStore.PKCS12");
mapPkcs12ToWks = Security.getProperty("wolfjce.mapPKCS12toWKS");
if (mapPkcs12ToWks != null && !mapPkcs12ToWks.isEmpty() &&