# 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)

*** ** * ** ***


```
public final class AuthenticationResult
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/provider/AuthenticationResult#AuthenticationResult(kotlin.Int)(int authenticationType)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/credentials/provider/AuthenticationResult#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final int` | `https://developer.android.com/reference/androidx/credentials/provider/AuthenticationResult#getAuthenticationType()()` 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/androidx/biometric/BiometricPrompt` such as `https://developer.android.com/reference/androidx/biometric/BiometricConstants#AUTHENTICATION_RESULT_TYPE_BIOMETRIC()` or `https://developer.android.com/reference/androidx/biometric/BiometricConstants#AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL()` |
| `int` | `https://developer.android.com/reference/androidx/credentials/provider/AuthenticationResult#hashCode()()` |

## Public constructors

### AuthenticationResult

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

```
public AuthenticationResult(int authenticationType)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getAuthenticationType

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

```
public final int getAuthenticationType()
```

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/androidx/biometric/BiometricPrompt` such as `https://developer.android.com/reference/androidx/biometric/BiometricConstants#AUTHENTICATION_RESULT_TYPE_BIOMETRIC()` or `https://developer.android.com/reference/androidx/biometric/BiometricConstants#AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL()`

### hashCode

```
public int hashCode()
```