-
public final class DeviceTimeValidatorCreated by Paz Lavi on 29,August,2023 paz.lavi@appsflyer.com
-
-
Field Summary
Fields Modifier and Type Field Description private final LongcurrentTimeStampMillis
-
Constructor Summary
Constructors Constructor Description DeviceTimeValidator()
-
Method Summary
Modifier and Type Method Description final LonggetCurrentTimeStampMillis()final BooleanisValid(String cdnTime, TimeUnit timeUnit, Long delta)Validate if the local device time os setup correctly based on remote time with a delta final BooleanisValid(String cdnTime, TimeUnit timeUnit)Validate if the local device time os setup correctly based on remote time with a delta final BooleanisValid(String cdnTime)Validate if the local device time os setup correctly based on remote time with a delta -
-
Method Detail
-
getCurrentTimeStampMillis
final Long getCurrentTimeStampMillis()
-
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
-
-
-
-