Package org.bouncycastle.crypto.fips
Class FipsStatus
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsStatus
-
public final class FipsStatus extends java.lang.ObjectStatus 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 Summary
Fields Modifier and Type Field Description static java.lang.StringREADY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]getModuleHMAC()Return the HMAC used to verify that the code contained in the module is the samestatic java.lang.StringgetStatusMessage()Return a message indicating the current status.static booleanisErrorStatus()Return true if the module is in error status, false otherwise.static booleanisReady()Check to see if the FIPS module is ready for operation.
-
-
-
Field Detail
-
READY
public static final java.lang.String READY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 java.lang.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.
-
-