Class Ipmiv20Message
java.lang.Object
org.metricshub.ipmi.core.coding.protocol.IpmiMessage
org.metricshub.ipmi.core.coding.protocol.Ipmiv20Message
Wrapper class for IPMI v2.0 message
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getIntegrityAlgorithmBase
(IpmiEncoder encoder) Gets base for integrity algorithm calculations.int
boolean
boolean
void
setOemIANA
(int oemIANA) void
setOemPayloadID
(Object oemPayloadID) void
setPayloadAuthenticated
(boolean payloadAuthenticated) void
setPayloadEncrypted
(boolean payloadEncrypted) void
setPayloadType
(PayloadType payloadType) Methods inherited from class org.metricshub.ipmi.core.coding.protocol.IpmiMessage
getAuthCode, getAuthenticationType, getConfidentialityAlgorithm, getPayload, getPayloadLength, getSessionID, getSessionSequenceNumber, setAuthCode, setAuthenticationType, setConfidentialityAlgorithm, setPayload, setPayloadLength, setSessionID, setSessionSequenceNumber
-
Constructor Details
-
Ipmiv20Message
-
-
Method Details
-
setPayloadEncrypted
public void setPayloadEncrypted(boolean payloadEncrypted) -
isPayloadEncrypted
public boolean isPayloadEncrypted() -
setPayloadAuthenticated
public void setPayloadAuthenticated(boolean payloadAuthenticated) -
isPayloadAuthenticated
public boolean isPayloadAuthenticated() -
setPayloadType
-
getPayloadType
-
setOemIANA
public void setOemIANA(int oemIANA) -
getOemIANA
public int getOemIANA() -
setOemPayloadID
-
getOemPayloadID
-
getIntegrityAlgorithmBase
Gets base for integrity algorithm calculations. If used for the message being created, does not contain AuthCode field so amount of Integrity Pad bytes cannot be calculated. Therefore integrity algorithms using this base must add proper amount of the Integrity Pad bytes and modify the Pad Length byte.- Parameters:
encoder
- -IpmiEncoder
to be used to convert message to byte array format. Must be able to handle null authCode field withisPayloadAuthenticated()
== true since this method is used in its generation.- Returns:
- base for integrity algorithm calculations
- Throws:
InvalidKeyException
- - when initiation of the confidentiality algorithm fails
-