com.baidubce.services.iothisk.device.utils
Class CounterUtils

java.lang.Object
  extended by com.baidubce.services.iothisk.device.utils.CounterUtils

public class CounterUtils
extends Object

Provides counter utils to valid device counter according to device sdk type


Constructor Summary
CounterUtils()
           
 
Method Summary
static void validCounter(DeviceSdkType deviceSdkType, long counter, long currentCounter)
          Check message counter to against replay attack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterUtils

public CounterUtils()
Method Detail

validCounter

public static void validCounter(DeviceSdkType deviceSdkType,
                                long counter,
                                long currentCounter)
Check message counter to against replay attack.

Parameters:
deviceSdkType - device sdk type
counter - message counter
currentCounter - current device counter


Copyright © 2020. All rights reserved.