public class BCFIPSCryptoProvider extends Object implements CryptoProvider
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.
Constructor and Description |
---|
BCFIPSCryptoProvider() |
Modifier and Type | Method and Description |
---|---|
Mac |
getMacInstance(String name)
Return an instance of a Mac digest for the provided algorithm name.
|
Signature |
getSignatureInstance(String name)
Return an instance of a Signature digest for the provided algorithm name.
|
public Mac getMacInstance(String name) throws NoSuchAlgorithmException
CryptoProvider
getMacInstance
in interface CryptoProvider
name
- the name of the algorithm.NoSuchAlgorithmException
- thrown when the requested algorithm cannot be satisfied by this crypto provider.public Signature getSignatureInstance(String name) throws NoSuchAlgorithmException
CryptoProvider
getSignatureInstance
in interface CryptoProvider
name
- the name of the algorithm.NoSuchAlgorithmException
- thrown when the requested algorithm cannot be satisfied by this crypto provider.Copyright © 2021. All rights reserved.