public class GetChannelCipherSuites extends IpmiCommandCoder
Constructor and Description |
---|
GetChannelCipherSuites()
Initiates class for decoding.
|
GetChannelCipherSuites(byte channelNumber,
byte index)
Initiates class for both encoding and decoding.
|
Modifier and Type | Method and Description |
---|---|
IpmiMessage |
encodeCommand(int sequenceNumber,
int sessionId)
Prepares an IPMI request message containing class-specific command
|
int |
getChannelNumber() |
byte |
getCommandCode()
Retrieves command code specific for command represented by this class
|
byte |
getIndex() |
NetworkFunction |
getNetworkFunction()
Retrieves network function specific for command represented by this
class.
|
ResponseData |
getResponseData(IpmiMessage message)
Retrieves command-specific response data from IPMI message
|
void |
setChannelNumber(int channelNumber)
Sets the channel number that will be put into IPMI command.
|
void |
setIndex(byte index) |
getAuthenticationType, getCipherSuite, getIpmiVersion, isCommandResponse, setAuthenticationType, setCipherSuite, setIpmiVersion, setSessionParameters
public GetChannelCipherSuites()
public GetChannelCipherSuites(byte channelNumber, byte index)
channelNumber
- - must be 0h-Bh or Eh-Fh index
- - (00h-3Fh). 0h selects the first set of 16 cipher suites, 1h
selects the next set of 16, and so onpublic void setChannelNumber(int channelNumber) throws java.lang.IllegalArgumentException
channelNumber
- - must be 0h-Bh or Eh-Fh java.lang.IllegalArgumentException
public int getChannelNumber()
public void setIndex(byte index)
public byte getIndex()
public IpmiMessage encodeCommand(int sequenceNumber, int sessionId) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
IpmiCommandCoder
encodeCommand
in class IpmiCommandCoder
sequenceNumber
- - A generated sequence number used for matching request and
response. If IPMI message is sent in a session, it is used as
a Session Sequence Number. For all IPMI messages,
sequenceNumber % 256 is used as a IPMI LAN Message sequence
number and as an IPMI payload message tag.sessionId
- - ID of the managed system's session message is being sent in.
For sessionless commands should b set to 0.java.security.NoSuchAlgorithmException
- - when authentication, confidentiality or integrity algorithm
fails.java.security.InvalidKeyException
- - when creating of the algorithm key failspublic 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