public class ReserveSdrRepository extends IpmiCommandCoder
Constructor and Description |
---|
ReserveSdrRepository(IpmiVersion version,
CipherSuite cipherSuite,
AuthenticationType authenticationType)
Initiates ReserveSdrRepository 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 ReserveSdrRepository(IpmiVersion version, CipherSuite cipherSuite, AuthenticationType authenticationType)
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.public 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