Package 

Class DeviceTimeValidator


  • 
    public final class DeviceTimeValidator
    
                        

    Created by Paz Lavi on 29,August,2023 paz.lavi@appsflyer.com

    • Method Summary

      Modifier and Type Method Description
      final Long getCurrentTimeStampMillis()
      final Boolean isValid(String cdnTime, TimeUnit timeUnit, Long delta) Validate if the local device time os setup correctly based on remote time with a delta
      final Boolean isValid(String cdnTime, TimeUnit timeUnit) Validate if the local device time os setup correctly based on remote time with a delta
      final Boolean isValid(String cdnTime) Validate if the local device time os setup correctly based on remote time with a delta
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeviceTimeValidator

        DeviceTimeValidator()
    • Method Detail

      • isValid

        @JvmOverloads() final Boolean isValid(String cdnTime, TimeUnit timeUnit, Long delta)

        Validate if the local device time os setup correctly based on remote time with a delta

        Parameters:
        cdnTime -
        • the current time from the server (header fields) as Timestamp in seconds

        timeUnit -
        • delta time unit

        delta -
        • delta value

      • isValid

        @JvmOverloads() final Boolean isValid(String cdnTime, TimeUnit timeUnit)

        Validate if the local device time os setup correctly based on remote time with a delta

        Parameters:
        cdnTime -
        • the current time from the server (header fields) as Timestamp in seconds

        timeUnit -
        • delta time unit

      • isValid

        @JvmOverloads() final Boolean isValid(String cdnTime)

        Validate if the local device time os setup correctly based on remote time with a delta

        Parameters:
        cdnTime -
        • the current time from the server (header fields) as Timestamp in seconds