Class IpmiPayload
java.lang.Object
org.metricshub.ipmi.core.coding.payload.IpmiPayload
- Direct Known Subclasses:
IpmiLanMessage,PlainMessage,SolMessage
Payload for IPMI messages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencryptPayload(ConfidentialityAlgorithm confidentialityAlgorithm) EncryptsgetPayloadData().byte[]getData()byte[]Returns encrypted payload encoded in byte array.abstract byte[]Returns IPMI command encapsulated in IPMI Payload.abstract byte[]Returns unencrypted payload encoded in byte array (owner is responsible for encryption).abstract intReturns encoded but UNENCRYPTED payload length.voidsetData(byte[] data)
-
Constructor Details
-
IpmiPayload
public IpmiPayload()
-
-
Method Details
-
setData
public void setData(byte[] data) -
getData
public byte[] getData() -
getEncryptedPayload
public byte[] getEncryptedPayload()Returns encrypted payload encoded in byte array. Migth be null if payload was not yet encrypted.- See Also:
-
getPayloadData
public abstract byte[] getPayloadData()Returns unencrypted payload encoded in byte array (owner is responsible for encryption).- Returns:
- payload
-
getPayloadLength
public abstract int getPayloadLength()Returns encoded but UNENCRYPTED payload length. -
getIpmiCommandData
public abstract byte[] getIpmiCommandData()Returns IPMI command encapsulated in IPMI Payload. -
encryptPayload
public void encryptPayload(ConfidentialityAlgorithm confidentialityAlgorithm) throws InvalidKeyException EncryptsgetPayloadData().- Parameters:
confidentialityAlgorithm-ConfidentialityAlgorithmto be used to encrypt payload data.- Throws:
InvalidKeyException- - when confidentiality algorithm fails.- See Also:
-