We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48ed301 commit ac72aabCopy full SHA for ac72aab
dotenvx-spring-boot/src/main/java/org/mvnsearch/dotenvx/jwt/Secp256k1KeyParser.java
@@ -1,5 +1,6 @@
1
package org.mvnsearch.dotenvx.jwt;
2
3
+import com.nimbusds.jose.crypto.bc.BouncyCastleProviderSingleton;
4
import org.bouncycastle.asn1.sec.SECNamedCurves;
5
import org.bouncycastle.asn1.x9.X9ECParameters;
6
import org.bouncycastle.jce.ECNamedCurveTable;
@@ -18,7 +19,9 @@
18
19
20
public class Secp256k1KeyParser {
21
static {
- Security.addProvider(new BouncyCastleProvider());
22
+ if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null) {
23
+ Security.addProvider(BouncyCastleProviderSingleton.getInstance());
24
+ }
25
}
26
27
/**
0 commit comments