public static enum DeviceFingerprintSource.Type extends Enum<DeviceFingerprintSource.Type>
Enum Constant and Description |
---|
HARDWARE_KEY
Seals the user's credentials with the hardware security module provided.
|
SERVICE
Deprecated.
Since Mobile Protector SDK v4.9.2 this type is deprecated.
For new token created, if this type is used then it will be ignored.
For old token, this type will still be used only for the migration.
|
SOFT
Seals the user's credentials with the Settings.Secure.ANDROID_ID of
the device.
|
Modifier and Type | Method and Description |
---|---|
static DeviceFingerprintSource.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceFingerprintSource.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceFingerprintSource.Type SERVICE
Any change of the SIM card will make the credentials unusable.
Requirements:
Warning: This device fingerprint source may be unavailable when devices are on flight/airplane mode. The cellular network status may also affect the availability of this source when some SIM cards inserted on some devices. User is recommended to check the service status (flight/airplane mode ON/OFF, recognizable SIM card inserted, etc) before provisioning once decided to apply this anti-cloning.
Warning: A token's credentials sealed with this type will no longer work as expected if the user alters the state of the SIM card that was used when the token was provisioned. Depending on the token's configuration during provisioning, it will either generate a DeviceFingerprintException or an OTP that cannot be authenticated. The following conditions are known to alter the state of the SIM card:
public static final DeviceFingerprintSource.Type SOFT
A factory reset / initialization of the device will make the credentials unusable.
Requirements:
Warning: If Type.SOFT is used, user cannot use the restored data after doing a factory reset and re-initializing to the same device. Likewise the user cannot backup the app and restore it on a different device.
public static final DeviceFingerprintSource.Type HARDWARE_KEY
This feature is only available on device that has API level >= 23.
If selected on device which is API level < 23, it does nothing.
Warning: Not all the devices that have API level >= 23 are supporting this feature.
Application should check the status of DeviceFingerprintSource.isHardwareKeySupported()
before using this mode.
DeviceFingerprintSource.isHardwareKeySupported()
public static DeviceFingerprintSource.Type[] values()
for (DeviceFingerprintSource.Type c : DeviceFingerprintSource.Type.values()) System.out.println(c);
public static DeviceFingerprintSource.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null