Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | Using webMethods Mobile Designer | Creating Mobile Application Projects | Coding a Mobile Application | Native Authentication API
 
Native Authentication API
You can use native authentication methods, like identification with a Touch or Fingerprint ID, Face ID, PIN, or some other platform-specific methods, for some security-critical tasks like login, showing sensible data, publishing data, etc.
Note:
Before a particular authentication method can be used, it must be configured on the user’s device.
Use the following code to request native authentication:
IDeviceAuthenticator deviceAuthenticator = (IDeviceAuthenticator)
MDApplication.getInstance().getService(IMDApplication.DEVICE_AUTHENTICATOR_SERVICE);
deviceAuthenticator.authenticate("Authentication is required",
"This action requires authentication.", this);
If you request native authentication, you must provide the IDeviceAuthenticationCallback method. This method informs you if authentication was successful or not. Authentication fails if a device does not support native authentication or if it is not fully/correctly configured.