# AuthenticationResult

Artifact: [androidx.credentials:credentials](https://developer.android.com/jetpack/androidx/releases/credentials) [View Source](https://cs.android.com/search?q=file:androidx/credentials/provider/AuthenticationResult.kt+class:androidx.credentials.provider.AuthenticationResult) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/credentials#1.5.0)

*** ** * ** ***


```
class AuthenticationResult
```

<br />

*** ** * ** ***

Successful result returned from the Biometric Prompt authentication flow handled by `https://developer.android.com/reference/kotlin/androidx/credentials/CredentialManager`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/provider/AuthenticationResult#AuthenticationResult(kotlin.Int)(authenticationType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/provider/AuthenticationResult#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/provider/AuthenticationResult#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/provider/AuthenticationResult#authenticationType()` the type of authentication (e.g. device credential or biometric) that was requested from and successfully provided by the user, corresponds to constants defined in `https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt` such as `https://developer.android.com/reference/kotlin/androidx/biometric/BiometricConstants#AUTHENTICATION_RESULT_TYPE_BIOMETRIC()` or `https://developer.android.com/reference/kotlin/androidx/biometric/BiometricConstants#AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL()` |

## Public constructors

### AuthenticationResult

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/credentials#1.5.0)

```
AuthenticationResult(authenticationType: Int)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### authenticationType

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/credentials#1.5.0)

```
val authenticationType: Int
```

the type of authentication (e.g. device credential or biometric) that was requested from and successfully provided by the user, corresponds to constants defined in `https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt` such as `https://developer.android.com/reference/kotlin/androidx/biometric/BiometricConstants#AUTHENTICATION_RESULT_TYPE_BIOMETRIC()` or `https://developer.android.com/reference/kotlin/androidx/biometric/BiometricConstants#AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL()`