Class BiometricAuthentication

java.lang.Object
com.iizix.prop.BiometricAuthentication
All Implemented Interfaces:
IBiometricAuthentication

public final class BiometricAuthentication extends Object implements IBiometricAuthentication
The server side of iiziRun's biometric check (CC-IIZIRUN-BIOMETRIC-API): the implementation of IBiometricAuthentication of an environment, which carries its requests to the client as remote event 15 of the environment and gets the client's answers as remote event 16, the way the passkey bridge of EnvProps does. One instance per environment, created on first use by EnvProps.getBiometricAuthentication(); NONE serves a gyro that is not a server's.

The wire. A request carries r (the request ID) and k (the kind): caps asks for the report; auth asks for a check, with the prompt's texts t (title), s (subtitle), d (description), c (cancel text) and f (fallback text) where given, and the booleans b (the device credential is allowed) and e (an emulated answer is allowed) where true. The client answers r with, for a report: i (iiziRun: Cordova is present), p (the plugin is present), t (the type word of the plugin's isAvailable for biometrics only, none without one), c and g (that call's error code and message when it failed), s (a strong biometric is available), d (the device credential: y, n or u), m (the emulation is on), v (a virtual device) and x (an iOS app on a Mac); for a check: ok (the user passed), m (the answer is emulated), and for a failure c (the code) and g (the message). The client's bridge is iz/EnvProps.js.

Threads. The getters read a volatile report. The request registry is guarded by this instance. Callbacks run where the application session's worker runs the client's other answers (EnvProps.deliverToApplication(String, Runnable)); a callback that throws is logged.

Author:
Christopher Mindus