Skip to content

Commit ac72aab

Browse files
committed
chore: polishing
1 parent 48ed301 commit ac72aab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dotenvx-spring-boot/src/main/java/org/mvnsearch/dotenvx/jwt/Secp256k1KeyParser.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.mvnsearch.dotenvx.jwt;
22

3+
import com.nimbusds.jose.crypto.bc.BouncyCastleProviderSingleton;
34
import org.bouncycastle.asn1.sec.SECNamedCurves;
45
import org.bouncycastle.asn1.x9.X9ECParameters;
56
import org.bouncycastle.jce.ECNamedCurveTable;
@@ -18,7 +19,9 @@
1819

1920
public class Secp256k1KeyParser {
2021
static {
21-
Security.addProvider(new BouncyCastleProvider());
22+
if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null) {
23+
Security.addProvider(BouncyCastleProviderSingleton.getInstance());
24+
}
2225
}
2326

2427
/**

0 commit comments

Comments
 (0)