com.baidubce.services.iothisk.device.utils
Class 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
|
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 |
CounterUtils
public CounterUtils()
validCounter
public static void validCounter(DeviceSdkType deviceSdkType,
long counter,
long currentCounter)
- Check message counter to against replay attack.
- Parameters:
deviceSdkType - device sdk typecounter - message countercurrentCounter - current device counter
Copyright © 2020. All rights reserved.