public class GetSelEntry extends IpmiCommandCoder
Constructor and Description |
---|
GetSelEntry(IpmiVersion version,
CipherSuite cipherSuite,
AuthenticationType authenticationType,
int reservationId,
int recordId)
Initiates GetSelEntry for both encoding and decoding.
|
Modifier and Type | Method and Description |
---|---|
byte |
getCommandCode()
Retrieves command code specific for command represented by this class
|
NetworkFunction |
getNetworkFunction()
Retrieves network function specific for command represented by this
class.
|
ResponseData |
getResponseData(IpmiMessage message)
Retrieves command-specific response data from IPMI message
|
encodeCommand, getAuthenticationType, getCipherSuite, getIpmiVersion, isCommandResponse, setAuthenticationType, setCipherSuite, setIpmiVersion, setSessionParameters
public GetSelEntry(IpmiVersion version, CipherSuite cipherSuite, AuthenticationType authenticationType, int reservationId, int recordId)
version
- - IPMI version of the command.cipherSuite
- - CipherSuite
containing authentication,
confidentiality and integrity algorithms for this session.authenticationType
- - Type of authentication used. Must be RMCPPlus for IPMI v2.0.reservationId
- - SEL reservation ID received via ReserveSel
command
or 0 if requesting for whole recordrecordId
- - ID of the record to getpublic byte getCommandCode()
IpmiCommandCoder
getCommandCode
in class IpmiCommandCoder
public NetworkFunction getNetworkFunction()
IpmiCommandCoder
getNetworkFunction
in class IpmiCommandCoder
NetworkFunction
public ResponseData getResponseData(IpmiMessage message) throws java.lang.IllegalArgumentException, IPMIException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
IpmiCommandCoder
getResponseData
in class IpmiCommandCoder
message
- - IPMI messagejava.lang.IllegalArgumentException
- when message is not a response for class-specific command or
response has invalid length.IPMIException
- when response completion code isn't OK.java.security.NoSuchAlgorithmException
- when authentication, confidentiality or integrity algorithm
fails.java.security.InvalidKeyException
- when creating of the authentication algorithm key fails