Loading

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

Data pubblicazione: Aug 4, 2025
Operazione

GOAL

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

Fasi

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. 
Numero articolo Knowledge

001114757

 
Caricamento
Salesforce Help | Article