public class DeviceFingerprintSource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DeviceFingerprintSource.Type
The defined anti-cloning types.
|
Modifier and Type | Field and Description |
---|---|
static DeviceFingerprintSource |
DEFAULT
Default device fingerprint source settings
Type.SERVICE and Type.SOFT |
Constructor and Description |
---|
DeviceFingerprintSource(byte[] customData,
DeviceFingerprintSource.Type... dft)
Build a new device fingerprint source with some application's custom data.
|
DeviceFingerprintSource(DeviceFingerprintSource.Type... dft)
Build a new device fingerprint source.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getCustomData()
Get application custom data.
|
boolean |
isActive(DeviceFingerprintSource.Type dft)
Check if the provided device fingerprint type will be used.
|
static boolean |
isHardwareKeySupported()
Checks if the device supports
DeviceFingerprintSource.Type.HARDWARE_KEY . |
public static final DeviceFingerprintSource DEFAULT
Type.SERVICE
and Type.SOFT
public DeviceFingerprintSource(DeviceFingerprintSource.Type... dft)
dft
- Array of source to use, see DeviceFingerprintSource.Type
public DeviceFingerprintSource(byte[] customData, DeviceFingerprintSource.Type... dft)
customData
- Application's custom datadft
- Array of source to use, see DeviceFingerprintSource.Type
public boolean isActive(DeviceFingerprintSource.Type dft)
dft
- the source to be verifiedpublic byte[] getCustomData()
public static boolean isHardwareKeySupported()
DeviceFingerprintSource.Type.HARDWARE_KEY
.
This process will use the strongest hardware security protection, for example using the StrongBox feature, if possible.true
if the device is supported, otherwise false
.
Warning: if this function returns false
, the application should not try to use the
DeviceFingerprintSource.Type.HARDWARE_KEY
only otherwise RuntimeException can be thrown later.