|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.baidubce.services.iothisk.device.IotHiskDevice
public class IotHiskDevice
Provides the hisk device with the local secure element ability. Currently, only baidu mbed_akey secure element is supported.
| Constructor Summary | |
|---|---|
IotHiskDevice(Device device)
Constructs a new hisk device client using the provided hisk device info. |
|
| Method Summary | |
|---|---|
byte[] |
decrypt(byte[] cipherMessage)
Decrypt cipher with device secure element. |
byte[] |
encrypt(byte[] message)
Encrypt message with device secure element. |
byte[] |
getActiveData()
Get device active data generated by device secure element |
long |
getCurrentCounter()
Get device client current counter. |
String |
getDeviceId()
Get unique device id in ascii encoding |
void |
setCurrentCounter(long counter)
Set device counter by user specified counter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IotHiskDevice(Device device)
device - specified hisk basic device info, corresponding to the contract created in hisk cloud service.| Method Detail |
|---|
public String getDeviceId()
public byte[] getActiveData()
public byte[] encrypt(byte[] message)
message - plain message in byte array
public byte[] decrypt(byte[] cipherMessage)
cipherMessage - cipher message in byte array
public long getCurrentCounter()
public void setCurrentCounter(long counter)
counter - specified counter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||