Package org.metricshub.ipmi.core.coding
Class Decoder
java.lang.Object
org.metricshub.ipmi.core.coding.Decoder
Decodes RMCP packet into
ResponseData.-
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseDatadecode(byte[] data, IpmiDecoder protocolDecoder, PayloadCoder payloadCoder) Decodes raw data intoResponseData- a wrapper class for message-specific response data.
-
Method Details
-
decode
public static ResponseData decode(byte[] data, IpmiDecoder protocolDecoder, PayloadCoder payloadCoder) throws IPMIException, NoSuchAlgorithmException, InvalidKeyException Decodes raw data intoResponseData- a wrapper class for message-specific response data.- Parameters:
data- - raw RMCP packet to be decodedprotocolDecoder- - instance ofIpmiDecoderclass for decoding of the IPMI session header and (if present) IPMI LAN packet. If IPMI LAN packet is present,Protocolv15DecoderorProtocolv20Decodershould be used (depending on IPMI protocol version used). Otherwise,PlainCommandv20Decodershould be used.payloadCoder- - instance ofPayloadCoderclass used for wrapping payload into message-dependentResponseDataobject.- Returns:
ResponseData- Throws:
IPMIException- when request to the server fails.IllegalArgumentException- when data is corruptedNoSuchAlgorithmException- - when authentication, confidentiality or integrity algorithm fails.InvalidKeyException- when creating of the authentication algorithm key fails- See Also:
-