This commit is contained in:
Looly 2024-01-16 11:50:36 +08:00
parent a6e1cba32b
commit 7a3790855b
2 changed files with 3 additions and 4 deletions

View File

@ -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);
} }

View File

@ -26,6 +26,7 @@ public class BouncyCastleProviderFactory implements ProviderFactory {
@Override @Override
public Provider create() { public Provider create() {
return new BouncyCastleProvider(); return new BouncyCastleProvider();
} }