public final class Decoder
extends java.lang.Object
ResponseData
.Modifier and Type | Method and Description |
---|---|
static ResponseData |
decode(byte[] data,
IpmiDecoder protocolDecoder,
IpmiCommandCoder commandCoder)
Decodes raw data into
ResponseData - a wrapper class for
message-specific response data. |
public static ResponseData decode(byte[] data, IpmiDecoder protocolDecoder, IpmiCommandCoder commandCoder) throws java.lang.IllegalArgumentException, IPMIException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
ResponseData
- a wrapper class for
message-specific response data.data
- - raw RMCP packet to be decodedprotocolDecoder
- - instance of IpmiDecoder
class for decoding of the
IPMI session header and (if present) IPMI LAN packet. If IPMI
LAN packet is present, Protocolv15Decoder
or
Protocolv20Decoder
should be used (depending on IPMI
protocol version used). Otherwise,
PlainCommandv20Decoder
should be used.commandCoder
- - instance of IpmiCommandCoder
class used for wrapping
payload into message-dependent ResponseData
object.ResponseData
IPMIException
- when request to the server fails.java.lang.IllegalArgumentException
- when data is corruptedjava.security.NoSuchAlgorithmException
- - when authentication, confidentiality or integrity algorithm
fails.java.security.InvalidKeyException
- when creating of the authentication algorithm key failsCompletionCode