gpt4 book ai didi

java - 如何安装 Unlimited Strength Jurisdiction 策略文件?

转载 作者:搜寻专家 更新时间:2023-10-31 08:06:16 26 4
gpt4 key购买 nike

谁能给我解释一下如何安装 Unlimited Strength Jurisdiction Policy Files。我从 Oracle website 下载了 .jar 文件但我在安装它们时遇到了问题。我正在制作的 Java 程序不断给我这个错误:

Jan 11, 2017 12:32:31 AM com.subgraph.orchid.TorClient start
INFO: Starting Orchid (version: 1.0.0)
Jan 11, 2017 12:32:31 AM com.subgraph.orchid.TorClient verifyUnlimitedStrengthPolicyInstalled
SEVERE: Unlimited Strength Jurisdiction Policy Files are required but not installed.
Exception in thread "main" com.subgraph.orchid.TorException: Unlimited Strength Jurisdiction Policy Files are required but not installed.
at com.subgraph.orchid.TorClient.verifyUnlimitedStrengthPolicyInstalled(TorClient.java:208)
at com.subgraph.orchid.TorClient.start(TorClient.java:79)
at com.nikola.WebCrawlerApp.App$OrchidDemo.startOrchid(App.java:46)
at com.nikola.WebCrawlerApp.App$OrchidDemo.access$000(App.java:38)
at com.nikola.WebCrawlerApp.App.main(App.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

最佳答案

2018-01-15更新

根据 JDK-8170157 , 由于 JDK 6u181, 7u171, 8u161, 9b148 无限加密策略默认启用。因此,您只需升级到相应的基线即可。

原始答案

Java 9Java 8u151 以来,不再需要下载和手动安装管辖策略文件。根据release notes :

In older releases, JCE jurisdiction files had to be downloaded and installed separately to allow unlimited cryptography to be used by the JDK. The download and install steps are no longer necessary. To enable unlimited cryptography, one can use the new crypto.policy Security property. If that new Security property is set in the java.security file, or has been set dynamically by using the Security.setProperty() call before the JCE framework has been initialized, that setting will be honoured. By default, the property will be undefined. If the property is undefined and the legacy JCE jurisdiction files don't exist in the legacy lib/security directory, then the default cryptographic level will remain at limited. To configure the JDK to use unlimited cryptography, set the crypto.policy to a value of unlimited. See the notes in the java.security file shipping with this release for more information.

关于java - 如何安装 Unlimited Strength Jurisdiction 策略文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41580489/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com