Class DeviceFingerprint
-
- All Implemented Interfaces:
public final class DeviceFingerprint
-
-
Field Summary
Fields Modifier and Type Field Description private Stringdataprivate StringdeviceTypeprivate StringdeviceModelprivate Stringhashprivate Stringipprivate IntegerosVersionprivate StringsdkVersionprivate StringalgorithmNameprivate StringalgorithmVersion
-
Method Summary
Modifier and Type Method Description final StringgetData()Miscellaneous data final UnitsetData(String value)Miscellaneous data final StringgetDeviceType()Device type - Always "ANDROID" final UnitsetDeviceType(String value)Device type - Always "ANDROID" final StringgetDeviceModel()Device model - Build. final UnitsetDeviceModel(String value)Device model - Build. final StringgetHash()Unique device identifier - Settings.Secure. final UnitsetHash(String value)Unique device identifier - Settings.Secure. final StringgetIp()Device IP address final UnitsetIp(String value)Device IP address final IntegergetOsVersion()Android OS version - Build.VERSION. final UnitsetOsVersion(Integer value)Android OS version - Build.VERSION. final StringgetSdkVersion()Incode SDK version final UnitsetSdkVersion(String value)Incode SDK version final StringgetAlgorithmName()Name of the algorithm that produced hash. final UnitsetAlgorithmName(String value)Name of the algorithm that produced hash. final StringgetAlgorithmVersion()Version of the algorithmName. final UnitsetAlgorithmVersion(String value)Version of the algorithmName. final StringtoJson(Boolean includeDeviceFingerprintPii)Converts DeviceFingerprint to JSON representation, ready to be sent to the Incode API. final StringtoJson()Converts DeviceFingerprint to JSON representation, ready to be sent to the Incode API. -
-
Method Detail
-
getDeviceType
final String getDeviceType()
Device type - Always "ANDROID"
-
setDeviceType
final Unit setDeviceType(String value)
Device type - Always "ANDROID"
-
getDeviceModel
final String getDeviceModel()
Device model - Build.MODEL
-
setDeviceModel
final Unit setDeviceModel(String value)
Device model - Build.MODEL
-
getOsVersion
final Integer getOsVersion()
Android OS version - Build.VERSION.SDK_INT
-
setOsVersion
final Unit setOsVersion(Integer value)
Android OS version - Build.VERSION.SDK_INT
-
getSdkVersion
final String getSdkVersion()
Incode SDK version
-
setSdkVersion
final Unit setSdkVersion(String value)
Incode SDK version
-
getAlgorithmName
final String getAlgorithmName()
Name of the algorithm that produced hash. For Android the hash is derived from Settings.Secure.ANDROID_ID and reported as "androidId".
-
setAlgorithmName
final Unit setAlgorithmName(String value)
Name of the algorithm that produced hash. For Android the hash is derived from Settings.Secure.ANDROID_ID and reported as "androidId".
-
getAlgorithmVersion
final String getAlgorithmVersion()
Version of the algorithmName. Bump only when the source or derivation of hash changes (not on routine SDK releases).
-
setAlgorithmVersion
final Unit setAlgorithmVersion(String value)
Version of the algorithmName. Bump only when the source or derivation of hash changes (not on routine SDK releases).
-
toJson
@JvmOverloads() final String toJson(Boolean includeDeviceFingerprintPii)
Converts DeviceFingerprint to JSON representation, ready to be sent to the Incode API.
- Parameters:
includeDeviceFingerprintPii- whenfalse, the hash (ANDROID_ID-derived) and ip keys are omitted entirely: PII not needed for Injection Attack Detection on on-device age estimation sessions.
-
toJson
@JvmOverloads() final String toJson()
Converts DeviceFingerprint to JSON representation, ready to be sent to the Incode API.
-
-
-
-