com.baidubce.services.iothisk.device.model
Class CipherMessage

java.lang.Object
  extended by com.baidubce.services.iothisk.device.model.CipherMessage

public class CipherMessage
extends Object

Represent the cipher message


Constructor Summary
CipherMessage()
          Constructs cipher message
CipherMessage(byte[] encryption, byte[] signature)
          Constructs cipher message
 
Method Summary
 byte[] getBytes()
          Get cipher message, including encrypted message and message signature
 byte[] getEncryption()
          Get encrypted message
 byte[] getSignature()
          Get message signature
 void setEncryption(byte[] encryption)
          Set encrypted message
 void setSignature(byte[] signature)
          Set message signature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CipherMessage

public CipherMessage(byte[] encryption,
                     byte[] signature)
Constructs cipher message

Parameters:
encryption - encrypted cipher message
signature - message signature

CipherMessage

public CipherMessage()
Constructs cipher message

Method Detail

getBytes

public byte[] getBytes()
Get cipher message, including encrypted message and message signature

Returns:
cipher message in byte array

setEncryption

public void setEncryption(byte[] encryption)
Set encrypted message

Parameters:
encryption - encrypted message

getEncryption

public byte[] getEncryption()
Get encrypted message

Returns:
encrypted message

setSignature

public void setSignature(byte[] signature)
Set message signature

Parameters:
signature - message signature

getSignature

public byte[] getSignature()
Get message signature

Returns:
message signature


Copyright © 2020. All rights reserved.