Class BiometricOnly
-
- All Implemented Interfaces:
-
org.forgerock.android.auth.devicebind.CryptoAware,org.forgerock.android.auth.devicebind.DeviceAuthenticator
public class BiometricOnly extends BiometricAuthenticator
Settings for all the biometric authentication is configured
-
-
Constructor Summary
Constructors Constructor Description BiometricOnly()
-
Method Summary
Modifier and Type Method Description final SignaturegetSignature(PrivateKey privateKey)Unitauthenticate(BiometricPrompt.AuthenticationCallback authenticationCallback, PrivateKey privateKey)Launch the Biometric Prompt. KeyPairgenerateKeys(Context context, Attestation attestation)generate the public and private keypair BooleanisSupported(Context context, Attestation attestation)check biometric is supported final DeviceBindingAuthenticationTypetype()-
Methods inherited from class org.forgerock.android.auth.devicebind.BiometricAuthenticator
authenticate, deleteKeys, setBiometricHandler, setKey -
Methods inherited from class org.forgerock.android.auth.devicebind.DeviceAuthenticator
getAlgorithm, getIssueTime, getNotBeforeTime, prompt, sign, sign, validateCustomClaims -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSignature
final Signature getSignature(PrivateKey privateKey)
-
authenticate
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
-
generateKeys
KeyPair generateKeys(Context context, Attestation attestation)
generate the public and private keypair
-
isSupported
Boolean isSupported(Context context, Attestation attestation)
check biometric is supported
-
type
final DeviceBindingAuthenticationType type()
-
-
-
-