mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:20:07 +08:00
修复部分环境下使用 Bouncy Castle可能的JCE cannot authenticate the provider BC问题
This commit is contained in:
parent
eb370bf32e
commit
8a30943d44
@ -3,7 +3,7 @@
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# 5.8.8.M1 (2022-09-24)
|
||||
# 5.8.8.M1 (2022-09-26)
|
||||
|
||||
### 🐣新特性
|
||||
* 【core 】 StreamUtil.of方法新增对 Iterator 支持;StreamUtil.of(Iterable) 方法优化(pr#807@Gitee)
|
||||
@ -21,6 +21,7 @@
|
||||
* 【poi 】 修复ExcelWriter导出List<Map>引起的个数混乱问题(issue#2627@Github)
|
||||
* 【poi 】 修复ExcelReader读取时间变成12小时形式问题(issue#I5Q1TW@Gitee)
|
||||
* 【db 】 修复DB工具分页查询的时候oracle数据库会把ROWNUM_也带出来问题(issue#2618@Github)
|
||||
* 【crypto 】 修复部分环境下使用 Bouncy Castle可能的JCE cannot authenticate the provider BC问题(issue#2631@Github)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -21,6 +21,9 @@ public class ProviderFactory {
|
||||
* @return {@link Provider}
|
||||
*/
|
||||
public static Provider createBouncyCastleProvider() {
|
||||
return new org.bouncycastle.jce.provider.BouncyCastleProvider();
|
||||
final org.bouncycastle.jce.provider.BouncyCastleProvider provider = new org.bouncycastle.jce.provider.BouncyCastleProvider();
|
||||
// issue#2631@Github
|
||||
SecureUtil.addProvider(provider);
|
||||
return provider;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user