com.baidubce.services.iothisk
Class IotHiskClient
java.lang.Object
com.baidubce.AbstractBceClient
com.baidubce.services.iothisk.AbstractIotHiskBceClient
com.baidubce.services.iothisk.IotHiskClient
public class IotHiskClient
- extends AbstractIotHiskBceClient
Provides the client for accessing the iot hisk service.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IotHiskClient
public IotHiskClient(BceClientConfiguration config)
- Constructs a new hisk client using the client configuration to access hisk.
- Parameters:
config
- The bcc client configuration options controlling how this client
connects to bcc (e.g. proxy settings, retry counts, etc).
encrypt
public CipherResponse encrypt(String deviceId,
CipherRequest request)
- Encrypt message for specified device.
- Parameters:
deviceId
- specified device idrequest
- plain text request message(base64 encoding), which required be encrypted
- Returns:
- encrypted cipher message(base64 encoding)
decrypt
public CipherResponse decrypt(String deviceId,
CipherRequest request)
- Decrypt message for specified device.
- Parameters:
deviceId
- specified device idrequest
- cipher request message(base64 encoding), which required be decrypted
- Returns:
- decrypted plain text message(base64 encoding)
active
public ActiveResponse active(String deviceId,
ActiveRequest request)
- Active specified device
- Parameters:
deviceId
- specified device idrequest
- activation message
- Returns:
- successful activation result with device id, otherwise an exception will be thrown
auth
public void auth(String deviceId,
AuthRequest request)
- Authenticate for specified device.
- Parameters:
deviceId
- specified device idrequest
- device authentication message
Copyright © 2018. All rights reserved.