Package io.fusionauth.security
Class BCFIPSCryptoProvider
java.lang.Object
io.fusionauth.security.BCFIPSCryptoProvider
- All Implemented Interfaces:
CryptoProvider
This Crypto Provider utilizes the FIPS certified Bouncy Castle Security Provider (BCFIPS).
To utilize this provider, ensure you have the bc-fips jar in your classpath at runtime and have added the BC Fips Security provider.
This library does not have a compile time or runtime dependency on the FIPS ready Bouncy Castle jar.
This implementation has been provided as an example, utilize it with the above usage warnings in mind or write
your own by implementing the CryptoProvider interface.
- Author:
- Daniel DeGroff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMacInstance(String name) Return an instance of a Mac digest for the provided algorithm name.getSignatureInstance(String name) Return an instance of a Signature digest for the provided algorithm name.
-
Constructor Details
-
BCFIPSCryptoProvider
public BCFIPSCryptoProvider()
-
-
Method Details
-
getMacInstance
Description copied from interface:CryptoProviderReturn an instance of a Mac digest for the provided algorithm name.- Specified by:
getMacInstancein interfaceCryptoProvider- Parameters:
name- the name of the algorithm.- Returns:
- a Mac instance
- Throws:
NoSuchAlgorithmException- thrown when the requested algorithm cannot be satisfied by this crypto provider.
-
getSignatureInstance
Description copied from interface:CryptoProviderReturn an instance of a Signature digest for the provided algorithm name.- Specified by:
getSignatureInstancein interfaceCryptoProvider- Parameters:
name- the name of the algorithm.- Returns:
- a Signature instance
- Throws:
NoSuchAlgorithmException- thrown when the requested algorithm cannot be satisfied by this crypto provider.
-