Class IntegrityNone
java.lang.Object
org.metricshub.ipmi.core.coding.security.IntegrityAlgorithm
org.metricshub.ipmi.core.coding.security.IntegrityNone
Class representing RAKP-None integrity algorithm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]generateAuthCode(byte[] base) Creates AuthCode field for message.Returns the name of the algorithm.intReturns the length of the authentication codebytegetCode()Returns the algorithm's ID.voidinitialize(byte[] sik) Initializes Integrity Algorithm
-
Constructor Details
-
IntegrityNone
public IntegrityNone()Initiates the IntegrityNone algorithm
-
-
Method Details
-
initialize
Description copied from class:IntegrityAlgorithmInitializes Integrity Algorithm- Overrides:
initializein classIntegrityAlgorithm- Parameters:
sik- - Session Integrity Key calculated during the opening of the session or user password if 'one-key' logins are enabled.- Throws:
InvalidKeyException
-
getCode
public byte getCode()Description copied from class:IntegrityAlgorithmReturns the algorithm's ID.- Specified by:
getCodein classIntegrityAlgorithm
-
generateAuthCode
public byte[] generateAuthCode(byte[] base) Description copied from class:IntegrityAlgorithmCreates AuthCode field for message.- Overrides:
generateAuthCodein classIntegrityAlgorithm- Parameters:
base- - data starting with the AuthType/Format field up to and including the field that immediately precedes the AuthCode field- Returns:
- AuthCode field. Might be null if empty AuthCOde field is generated.
- See Also:
-
getAlgorithmName
Description copied from class:IntegrityAlgorithmReturns the name of the algorithm.- Specified by:
getAlgorithmNamein classIntegrityAlgorithm- Returns:
- The algorithm name as a
String.
-
getAuthCodeLength
public int getAuthCodeLength()Description copied from class:IntegrityAlgorithmReturns the length of the authentication code- Specified by:
getAuthCodeLengthin classIntegrityAlgorithm- Returns:
- The length of the authentication code in bytes.
-