Package io.fusionauth.security
Interface CryptoProvider
- All Known Implementing Classes:
BCFIPSCryptoProvider,DefaultCryptoProvider
public interface CryptoProvider
- Author:
- Daniel DeGroff
-
Method Summary
Modifier and TypeMethodDescriptiongetMacInstance(String algorithmName) Return an instance of a Mac digest for the provided algorithm name.getSignatureInstance(String algorithmName) Return an instance of a Signature digest for the provided algorithm name.
-
Method Details
-
getMacInstance
Return an instance of a Mac digest for the provided algorithm name.- Parameters:
algorithmName- the name of the algorithm.- Returns:
- a Mac instance
- Throws:
NoSuchAlgorithmException- thrown when the requested algorithm cannot be satisfied by this crypto provider.
-
getSignatureInstance
Return an instance of a Signature digest for the provided algorithm name.- Parameters:
algorithmName- the name of the algorithm.- Returns:
- a Signature instance
- Throws:
NoSuchAlgorithmException- thrown when the requested algorithm cannot be satisfied by this crypto provider.
-