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.int
Returns the length of the authentication codebyte
getCode()
Returns the algorithm's ID.void
initialize
(byte[] sik) Initializes Integrity Algorithm
-
Constructor Details
-
IntegrityNone
public IntegrityNone()Initiates the IntegrityNone algorithm
-
-
Method Details
-
initialize
Description copied from class:IntegrityAlgorithm
Initializes Integrity Algorithm- Overrides:
initialize
in 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:IntegrityAlgorithm
Returns the algorithm's ID.- Specified by:
getCode
in classIntegrityAlgorithm
-
generateAuthCode
public byte[] generateAuthCode(byte[] base) Description copied from class:IntegrityAlgorithm
Creates AuthCode field for message.- Overrides:
generateAuthCode
in 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: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.
-