public static boolean useOnlyFips() {
    return TinkFipsStatus.useOnlyFips() || isRestrictedToFips.get();
  }
This method is only exposed for tests and should not be used to disable the FIPS restrictions.
java_src/src/main/java/com/google/crypto/tink/config/internal/TinkFipsUtil.java