mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add security
This commit is contained in:
parent
06ee2e0fcd
commit
8b9b610ba3
@ -21,6 +21,9 @@ public class ProviderFactory {
|
|||||||
* @return {@link Provider}
|
* @return {@link Provider}
|
||||||
*/
|
*/
|
||||||
public static Provider createBouncyCastleProvider() {
|
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…
x
Reference in New Issue
Block a user