AuthenticationResult.Success


public final class AuthenticationResult.Success implements AuthenticationResult


A result when the user has successfully authenticated.

Summary

Public constructors

Success(BiometricPrompt.CryptoObject crypto, int authType)

Public methods

final int

An integer representing the type of authentication(e.g. device credential or biometric) that was requested from and successfully provided by the user.

final BiometricPrompt.CryptoObject

The BiometricPrompt.CryptoObject associated with this transaction.

@NonNull AuthenticationResult.Success

Returns a Success only if it's a Success, throws otherwise.

Inherited methods

From androidx.biometric.AuthenticationResult
AuthenticationResult.Error

Returns a Error only if it's a Error, throws otherwise.

boolean

Whether this AuthenticationResult is an Error.

boolean

Whether this AuthenticationResult is a Success.

Public constructors

Success

Added in 1.4.0-alpha03
public Success(BiometricPrompt.CryptoObject crypto, int authType)

Public methods

getAuthType

Added in 1.4.0-alpha03
public final int getAuthType()

An integer representing the type of authentication(e.g. device credential or biometric) that was requested from and successfully provided by the user.

getCrypto

Added in 1.4.0-alpha03
public final BiometricPrompt.CryptoObject getCrypto()

The BiometricPrompt.CryptoObject associated with this transaction.

success

public @NonNull AuthenticationResult.Success success()

Returns a Success only if it's a Success, throws otherwise.