Package org.bouncycastle.crypto.fips
Class FipsStatus
java.lang.Object
org.bouncycastle.crypto.fips.FipsStatus
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
Return the HMAC used to verify that the code contained in the module is the samestatic String
Return a message indicating the current status.static boolean
Return true if the module is in error status, false otherwise.static boolean
isReady()
Check to see if the FIPS module is ready for operation.
-
Field Details
-
READY
- See Also:
-
-
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
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.
-