Class GetChannelCipherSuites
java.lang.Object
org.metricshub.ipmi.core.coding.PayloadCoder
org.metricshub.ipmi.core.coding.commands.IpmiCommandCoder
org.metricshub.ipmi.core.coding.commands.session.GetChannelCipherSuites
Wrapper for RMCP+ Get Channel Cipher Suites command. This command can be
 executed prior to establishing a session with the BMC.
- 
Constructor SummaryConstructorsConstructorDescriptionInitiates class for decoding.GetChannelCipherSuites(byte channelNumber, byte index) Initiates class for both encoding and decoding.
- 
Method SummaryModifier and TypeMethodDescriptionencodePayload(int messageSequenceNumber, int sessionSequenceNumber, int sessionId) Prepares an IPMI request message containing class-specific payload.intbyteRetrieves command code specific for command represented by this classbytegetIndex()Retrieves network function specific for command represented by this class.getResponseData(IpmiMessage message) Retrieves payload-specific response data from IPMI messagevoidsetChannelNumber(int channelNumber) Sets the channel number that will be put into IPMI command.voidsetIndex(byte index) Methods inherited from class org.metricshub.ipmi.core.coding.commands.IpmiCommandCodergetSupportedPayloadType, isCommandResponseMethods inherited from class org.metricshub.ipmi.core.coding.PayloadCodergetAuthenticationType, getCipherSuite, getIpmiVersion, setAuthenticationType, setCipherSuite, setIpmiVersion, setSessionParameters
- 
Constructor Details- 
GetChannelCipherSuitespublic GetChannelCipherSuites()Initiates class for decoding.
- 
GetChannelCipherSuitespublic GetChannelCipherSuites(byte channelNumber, byte index) Initiates class for both encoding and decoding.- Parameters:
- channelNumber- - must be 0h-Bh or Eh-Fh
 Eh = retrieve information for channel this request was issued on
- index- - (00h-3Fh). 0h selects the first set of 16 cipher suites, 1h selects the next set of 16, and so on
 
 
- 
- 
Method Details- 
setChannelNumberpublic void setChannelNumber(int channelNumber) Sets the channel number that will be put into IPMI command.- Parameters:
- channelNumber- - must be 0h-Bh or Eh-Fh
 Eh = retrieve information for channel this request was issued on
- Throws:
- IllegalArgumentException
 
- 
getChannelNumberpublic int getChannelNumber()
- 
setIndexpublic void setIndex(byte index) 
- 
getIndexpublic byte getIndex()
- 
encodePayloadpublic IpmiMessage encodePayload(int messageSequenceNumber, int sessionSequenceNumber, int sessionId) throws NoSuchAlgorithmException, InvalidKeyException Description copied from class:PayloadCoderPrepares an IPMI request message containing class-specific payload.- Overrides:
- encodePayloadin class- PayloadCoder
- Parameters:
- messageSequenceNumber- - A generated sequence number used for matching request and response. For all IPMI messages, messageSequenceNumber is used as a IPMI LAN Message sequence number and as an IPMI payload message tag.
- sessionSequenceNumber- - If IPMI message is sent in a session, it is used as a Session Sequence Number
- sessionId- - ID of the managed system's session message is being sent in. For sessionless commands should b set to 0.
- Returns:
- IPMI message
- Throws:
- NoSuchAlgorithmException- - when authentication, confidentiality or integrity algorithm fails.
- InvalidKeyException- - when creating of the algorithm key fails
 
- 
getCommandCodepublic byte getCommandCode()Description copied from class:IpmiCommandCoderRetrieves command code specific for command represented by this class- Specified by:
- getCommandCodein class- IpmiCommandCoder
- Returns:
- command code
 
- 
getNetworkFunctionDescription copied from class:IpmiCommandCoderRetrieves network function specific for command represented by this class.- Specified by:
- getNetworkFunctionin class- IpmiCommandCoder
- Returns:
- network function
- See Also:
 
- 
getResponseDatapublic ResponseData getResponseData(IpmiMessage message) throws IPMIException, NoSuchAlgorithmException, InvalidKeyException Description copied from class:PayloadCoderRetrieves payload-specific response data from IPMI message- Specified by:
- getResponseDatain class- PayloadCoder
- Parameters:
- message- - IPMI message
- Returns:
- response data
- Throws:
- IPMIException- when response completion code isn't OK.
- NoSuchAlgorithmException- when authentication, confidentiality or integrity algorithm fails.
- InvalidKeyException- when creating of the authentication algorithm key fails
 
 
-