-
public class SecureDataProvider
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringLVL_KEYpublic final static StringLVL_TTR_KEYpublic final static StringLVL_ERROR_KEYpublic final static StringLVL_TIMESTAMP_KEYpublic final static StringPENDING_LVL_RESPONSE_ERRORprivate longlvlStartTimestampprivate volatile StringdevKeyprivate volatile booleansdkStoppedprivate volatile StringuserCustomImei
-
Constructor Summary
Constructors Constructor Description SecureDataProvider(ContextProvider contextProvider, AFLvlDataManager afLvlDataManager)
-
Method Summary
Modifier and Type Method Description longgetLvlStartTimestamp()StringgetDevKey()voidsetDevKey(String devKey)voidsetSdkStopped(boolean stopped)StringgetUserCustomImei()voidsetUserCustomImei(@NonNull() String userCustomImei)booleanisSdkStopped()StringgetImei(AppsFlyerPreferences pref)Map<String, Object>generateCheckSumForEvent(Map<String, Object> params)Uses AFCksmV2 to generate checksum for given event params.The checksum value then has to be added to the event params under the special key for anti-fraud. Map<String, Object>generateCheckSumV3ForEvent(Map<String, Object> params)voidnativeSigning(AFEvent event)Map<String, Object>getLvlMap()booleanisWaitingForLvlData()voidcheckAndBindLVL(IdProvider idProvider)Tries to bind lvl licencing module and request google play lvl data. longgetNonce(IdProvider idProvider)-
-
Constructor Detail
-
SecureDataProvider
SecureDataProvider(ContextProvider contextProvider, AFLvlDataManager afLvlDataManager)
-
-
Method Detail
-
getLvlStartTimestamp
long getLvlStartTimestamp()
-
setSdkStopped
void setSdkStopped(boolean stopped)
-
getUserCustomImei
@Nullable() String getUserCustomImei()
-
setUserCustomImei
void setUserCustomImei(@NonNull() String userCustomImei)
-
isSdkStopped
boolean isSdkStopped()
-
getImei
@Nullable() String getImei(AppsFlyerPreferences pref)
-
generateCheckSumForEvent
Map<String, Object> generateCheckSumForEvent(Map<String, Object> params)
Uses AFCksmV2 to generate checksum for given event params.The checksum value then has to be added to the event params under the special key for anti-fraud.
-
generateCheckSumV3ForEvent
Map<String, Object> generateCheckSumV3ForEvent(Map<String, Object> params)
-
nativeSigning
void nativeSigning(AFEvent event)
-
isWaitingForLvlData
boolean isWaitingForLvlData()
-
checkAndBindLVL
void checkAndBindLVL(IdProvider idProvider)
Tries to bind lvl licencing module and request google play lvl data.The data itself is collected asynchronously,check isLVLMapAvailable and getLvlMap periodically to get it.
You can also check if data fetching is still in progress by isWaitingForLvlData method.
N.B. all LVL related code was migrated as is from AppsflyerLibCore, during Queue implementation
-
getNonce
long getNonce(IdProvider idProvider)
-
-
-
-