Package com.nimbusds.jose.crypto.bc
Class BouncyCastleFIPSProviderSingleton
java.lang.Object
com.nimbusds.jose.crypto.bc.BouncyCastleFIPSProviderSingleton
BouncyCastle FIPS JCA provider singleton, intended to prevent memory leaks
by ensuring a single instance is loaded at all times. Application code that
needs a BouncyCastle FIPS JCA provider should use the
getInstance()
method to obtain an instance.
Requires the following optional dependency:
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bc-fips</artifactId>
<version>[1.0.2,2.0.0)</version>
<optional>true</optional>
</dependency>
Important: The plain BouncyCastle JCA provider dependency must not be present to prevent class conflicts!
- Author:
- Vladimir Dzhuvinov
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bouncycastle.jcajce.provider.BouncyCastleFipsProviderReturns a BouncyCastle FIPS JCA provider instance.
-
Method Details
-
getInstance
Returns a BouncyCastle FIPS JCA provider instance.- Returns:
- The BouncyCastle FIPS JCA provider instance.
-