Class IntegrityHmacSha256_128
java.lang.Object
org.metricshub.ipmi.core.coding.security.IntegrityAlgorithm
org.metricshub.ipmi.core.coding.security.IntegrityHmacSha256_128
HMAC-SHA256-128 integrity algorithm.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the algorithm.int
Returns the length of the authentication codebyte
getCode()
Returns the algorithm's ID.Methods inherited from class org.metricshub.ipmi.core.coding.security.IntegrityAlgorithm
generateAuthCode, initialize
-
Constructor Details
-
IntegrityHmacSha256_128
public IntegrityHmacSha256_128()Initiates HMAC-SHA1-96 integrity algorithm.
-
-
Method Details
-
getCode
public byte getCode()Description copied from class:IntegrityAlgorithm
Returns the algorithm's ID.- Specified by:
getCode
in classIntegrityAlgorithm
-
getAlgorithmName
Description copied from class:IntegrityAlgorithm
Returns the name of the algorithm.- Specified by:
getAlgorithmName
in classIntegrityAlgorithm
- Returns:
- The algorithm name as a
String
.
-
getAuthCodeLength
public int getAuthCodeLength()Description copied from class:IntegrityAlgorithm
Returns the length of the authentication code- Specified by:
getAuthCodeLength
in classIntegrityAlgorithm
- Returns:
- The length of the authentication code in bytes.
-