allowClass2AndroidSensors abstract method Null safety

Registration allowClass2AndroidSensors(
  1. bool allowClass2AndroidSensors
)

Specifies whether Class 2 (formerly weak) biometric sensors are allowed if the biometric authenticator is selected.

IMPORTANT
This method is Android specific and will be ignored on iOS platform.

By default, the SDK will only allow to use Class 3 (formerly strong) sensors. Using Class 2 sensors is less secure and discouraged. When a Class 2 sensor is used, the FIDO UAF keys are not protected by the operating system by requiring user authentication.

If the SDK detects that only Class 3 (strong) biometric sensors are available in the mobile device, even if Class 2 sensors are allowed, the FIDO UAF credentials will be protected by the operating system by requiring user authentication.

However, in some cases it may be acceptable for the sake of end-user convenience. Allowing Class 2 sensors will enable for instance the use of face recognition in some Samsung devices.

Params:

  • allowClass2AndroidSensors: specifies whether Class 2 biometric sensors are allowed if the biometric authenticator is selected.

Returns: a Registration object.

Implementation

Registration allowClass2AndroidSensors(bool allowClass2AndroidSensors);