类 CounterUtils
- java.lang.Object
-
- com.baidubce.services.iothisk.device.utils.CounterUtils
-
public class CounterUtils extends Object
Provides counter utils to valid device counter according to device sdk type
-
-
构造器概要
构造器 构造器 说明 CounterUtils()
-
-
-
方法详细资料
-
validCounter
public static void validCounter(DeviceSdkType deviceSdkType, long counter, long currentCounter)
Check message counter to against replay attack.- 参数:
deviceSdkType- device sdk typecounter- message countercurrentCounter- current device counter
-
-