Class FipsStatus

java.lang.Object
org.bouncycastle.crypto.fips.FipsStatus

public final class FipsStatus extends Object
Status utility class - it has three methods on it, one for returning "isReady" status, one for a status message, and one for the current module checksum.
  • Field Details

  • Method Details

    • isReady

      public static boolean isReady()
      Check to see if the FIPS module is ready for operation.
      Returns:
      true if the module is ready for operation with all self-tests complete.
    • getStatusMessage

      public static String getStatusMessage()
      Return a message indicating the current status.
      Returns:
      READY if all is well, an exception message otherwise.
    • getModuleHMAC

      public static byte[] getModuleHMAC()
      Return the HMAC used to verify that the code contained in the module is the same
      Returns:
      the internally calculated HMAC for the module.
    • isErrorStatus

      public static boolean isErrorStatus()
      Return true if the module is in error status, false otherwise.
      Returns:
      true if an error has been detected, false otherwise.