BiometricAuthenticationException

actual class BiometricAuthenticationException(message: String, val biometricExceptionDetails: BiometricExceptionDetails) : GeneralSecurityException
expect class BiometricAuthenticationException(message: String, biometricExceptionDetails: BiometricExceptionDetails) : Exception

Represents a failed, errored, or cancelled biometric authentication challenge.

This type is safe to catch, construct, and inspect from shared (commonMain) code. When surfaced from com.okta.authfoundation.credential.BiometricAuthenticator, it is always delivered as the failure of a Result — that interface never throws this (or any other) exception for expected failure/error/cancellation outcomes.

On JVM and Android targets this class extends java.security.GeneralSecurityException so it is compatible with existing catch-clauses that catch GeneralSecurityException.

actual class BiometricAuthenticationException(message: String, val biometricExceptionDetails: BiometricExceptionDetails) : GeneralSecurityException

Constructors

Link copied to clipboard
actual constructor(message: String, biometricExceptionDetails: BiometricExceptionDetails)
expect constructor(message: String, biometricExceptionDetails: BiometricExceptionDetails)
actual constructor(message: String, biometricExceptionDetails: BiometricExceptionDetails)

Properties

cause
Link copied to clipboard
open val cause: Throwable?
open val cause: Throwable?
open val cause: Throwable?
message
Link copied to clipboard
open val message: String?
open val message: String?
open val message: String?