public static boolean useOnlyFips() {
    return TinkFipsUtil.useOnlyFips();
  }
Returns true if the FIPS-mode has been enabled at build time or runtime.
java_src/src/main/java/com/google/crypto/tink/config/TinkFips.java