add security

This commit is contained in:
Looly 2022-09-26 12:14:15 +08:00
parent 06ee2e0fcd
commit 8b9b610ba3

View File

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