mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
a6e1cba32b
commit
7a3790855b
@ -612,11 +612,9 @@ public class SecureUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 强制关闭Bouncy Castle库的使用,全局有效
|
* 强制关闭自定义{@link Provider}的使用,如Bouncy Castle库,全局有效
|
||||||
*
|
|
||||||
* @since 4.5.2
|
|
||||||
*/
|
*/
|
||||||
public static void disableBouncyCastle() {
|
public static void disableCustomProvider() {
|
||||||
GlobalProviderFactory.setUseCustomProvider(false);
|
GlobalProviderFactory.setUseCustomProvider(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ public class BouncyCastleProviderFactory implements ProviderFactory {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Provider create() {
|
public Provider create() {
|
||||||
|
|
||||||
return new BouncyCastleProvider();
|
return new BouncyCastleProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user