How to avoid installing “Unlimited Strength” JCE policy files when deploying an application?

前端 未结 11 2370
鱼传尺愫
鱼传尺愫 2020-11-22 07:43

I have an app that uses 256-bit AES encryption which is not supported by Java out of the box. I know to get this to function correctly I install the JCE unlimited strength j

11条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 08:35

    As of JDK 8u102, the posted solutions relying on reflection will no longer work: the field that these solutions set is now final (https://bugs.openjdk.java.net/browse/JDK-8149417).

    Looks like it's back to either (a) using Bouncy Castle, or (b) installing the JCE policy files.

提交回复
热议问题