Loading

How to find Java Cryptography Extension (JCE) is indeed working

Publiceringsdatum: Aug 4, 2025
Uppgift

GOAL

Find out whether Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files are working. 

Steg

This could be easily verified by running the following command in your terminal or command window:

Unix OS:

jrunscript -e 'exit (println(javax.crypto.Cipher.getMaxAllowedKeyLength("AES") >= 256));'
Windows OS:
jrunscript -e "exit (println(javax.crypto.Cipher.getMaxAllowedKeyLength(\"AES\") >= 256));"

The output of this command will print true if JCE policy files have been applied and false if not. If the output is false then follow the instructions on the solution provided in this Knowledge Base article.

Note: The command jrunscript is bundled in the JDK. If you have installed only JRE, then you won't have access to this command. 
Knowledge-artikelnummer

001114757

 
Laddar
Salesforce Help | Article