mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
package org.dromara.hutool.crypto.provider;
|
||||
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
|
||||
import java.security.Provider;
|
||||
import java.security.Security;
|
||||
@@ -25,6 +26,14 @@ import java.security.Security;
|
||||
*/
|
||||
public class BouncyCastleProviderFactory implements ProviderFactory {
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*/
|
||||
public BouncyCastleProviderFactory(){
|
||||
// SPI方式加载时检查BC库是否引入
|
||||
Assert.notNull(BouncyCastleProvider.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Provider create() {
|
||||
// pr#3464,Graalvm打包后注册会导致
|
||||
|
Reference in New Issue
Block a user