类 CounterUtils


  • public class CounterUtils
    extends Object
    Provides counter utils to valid device counter according to device sdk type
    • 构造器详细资料

      • CounterUtils

        public CounterUtils()
    • 方法详细资料

      • validCounter

        public static void validCounter​(DeviceSdkType deviceSdkType,
                                        long counter,
                                        long currentCounter)
        Check message counter to against replay attack.
        参数:
        deviceSdkType - device sdk type
        counter - message counter
        currentCounter - current device counter