I believe the question you should be asking at this point is how to setup your JVM to run in a FIPS 140 approved mode. Please check https://www.bouncycastle.org/fips-java/ as an example of a Security Provider that can be set in FIPS 140 approved mode and their documentation on how to configure that.