Package com.nimbusds.jose.crypto.bc
Class BouncyCastleProviderSingleton
- java.lang.Object
-
- com.nimbusds.jose.crypto.bc.BouncyCastleProviderSingleton
-
public final class BouncyCastleProviderSingleton extends Object
BouncyCastle JCA provider singleton, intended to prevent memory leaks by ensuring a single instance is loaded at all times. Application code that needs a BouncyCastle JCA provider should use thegetInstance()
method to obtain an instance.Requires the following optional dependency:
<dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk15on</artifactId> <version>[1.68,2.0.0)</version> <optional>true</optional> </dependency>
Important: The BouncyCastle FIPS JCA provider dependency must not be present to prevent class conflicts!
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.bouncycastle.jce.provider.BouncyCastleProvider
getInstance()
Returns a BouncyCastle JCA provider instance.
-
-
-
Method Detail
-
getInstance
public static org.bouncycastle.jce.provider.BouncyCastleProvider getInstance()
Returns a BouncyCastle JCA provider instance.- Returns:
- The BouncyCastle JCA provider instance.
-
-