Class BiometricAuthenticator
-
- All Implemented Interfaces:
-
org.forgerock.android.auth.devicebind.CryptoAware,org.forgerock.android.auth.devicebind.DeviceAuthenticator
public abstract class BiometricAuthenticator implements CryptoAware, DeviceAuthenticator
-
-
Constructor Summary
Constructors Constructor Description BiometricAuthenticator()
-
Method Summary
Modifier and Type Method Description final UnitsetKey(CryptoKey cryptoKey)final UnitsetBiometricHandler(BiometricHandler biometricHandler)UnitdeleteKeys(Context context)DeviceBindingStatusauthenticate(Context context)Display biometric prompt for authentication type abstract Unitauthenticate(BiometricPrompt.AuthenticationCallback authenticationCallback, PrivateKey privateKey)Launch the Biometric Prompt. -
Methods inherited from class org.forgerock.android.auth.devicebind.DeviceAuthenticator
generateKeys, getAlgorithm, getIssueTime, getNotBeforeTime, isSupported, prompt, sign, sign, type, validateCustomClaims -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setBiometricHandler
final Unit setBiometricHandler(BiometricHandler biometricHandler)
-
deleteKeys
Unit deleteKeys(Context context)
-
authenticate
DeviceBindingStatus authenticate(Context context)
Display biometric prompt for authentication type
- Parameters:
context- Application Context- Returns:
statusResult Listener for receiving Biometric changes
-
authenticate
abstract Unit authenticate(BiometricPrompt.AuthenticationCallback authenticationCallback, PrivateKey privateKey)
Launch the Biometric Prompt.
- Parameters:
authenticationCallback- BiometricPrompt.AuthenticationCallback to handle the result.privateKey- The private key to unlock
-
-
-
-