logo
On this page

When running Java source code to generate Token, if an exception "java.security.InvalidKeyException
Key Size" appears, how to handle it?

2022-08-05
Products / Plugins:Video Call / Audio Call / Live streaming
Platform / Framework:All

You can choose any of the following methods to handle it:

  1. Upgrade Java to version 8u162 or above to use unlimited policy by default. If you upgrade to Java 9 or above, there are no related restrictions;

  2. If your Java version is 8u151 or 8u152, please set unlimited permission policy directly in your program:

    Security.setProperty("crypto.policy", "unlimited");
  3. If your Java is another version, please download the JCE unlimited permission policy file from the official website and use the files in it to replace the corresponding jar in the $JAVA_HOME/lib/security directory:

Previous

How to perform mute/unmute, mute audio, and disable camera operations on remote users?

Next

How to use ZEGO Express Web SDK on mobile?