BiometricDeviceCredentialAuthenticator

Biometric authenticator with device credential fallback support for enhanced user experience.

This authenticator provides a flexible authentication approach that allows users to authenticate using either biometric methods (fingerprint, face, iris) or device credentials (PIN, pattern, password) as a fallback option. This combination offers the security benefits of biometric authentication while ensuring users always have an alternative authentication method available.

Since

1.0.0

Parameters

config

Configuration object containing biometric prompt settings, key generation parameters, hardware preferences, and logging configuration

See also

Constructors

Link copied to clipboard
constructor(config: BiometricAuthenticatorConfig)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The type of device binding authentication provided by this authenticator.

Functions

Link copied to clipboard
open suspend override fun authenticate(context: Context): Result<Pair<PrivateKey, BiometricPrompt.CryptoObject?>>

Authenticates the user using biometric methods with device credential fallback.

Link copied to clipboard
open override fun isSupported(context: Context, attestation: Attestation): Boolean

Checks if biometric authentication with device credential fallback is supported on the current device.

Link copied to clipboard
open suspend override fun register(context: Context, attestation: Attestation): Result<KeyPair>

Registers a new device by generating biometric and device credential protected key pairs.