# AuthenticationRequest.Credential

Artifact: [androidx.biometric:biometric](https://developer.android.com/jetpack/androidx/releases/biometric) [View Source](https://cs.android.com/search?q=file:androidx/biometric/AuthenticationRequest.kt+class:androidx.biometric.AuthenticationRequest.Credential) Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

*** ** * ** ***


```
@RequiresApi(value = 30)
class AuthenticationRequest.Credential : AuthenticationRequest
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.biometric.AuthenticationRequest](https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest) ||
|   | ↳ | [androidx.biometric.AuthenticationRequest.Credential](https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential) |

*** ** * ** ***

A set of configurable options for how the `https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt` should appear and behave with device credential only.

Note that Device-credential-only authentication is not supported prior to API 30.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential.Builder` Builder used to create an instance of `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential`. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.BodyContent?` | `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential#content()` The optional `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.BodyContent` of the prompt. |
| `https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt.CryptoObject?` | `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential#cryptoObject()` An optional cryptographic object to be associated with the authentication. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential#subtitle()` The optional subtitle of the prompt. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential#title()` The title of the prompt. |

## Public properties

### content

Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

```
val content: AuthenticationRequest.BodyContent?
```

The optional `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.BodyContent` of the prompt.

### cryptoObject

Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

```
val cryptoObject: BiometricPrompt.CryptoObject?
```

An optional cryptographic object to be associated with the authentication.

### subtitle

Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

```
val subtitle: String?
```

The optional subtitle of the prompt.

### title

Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

```
val title: String
```

The title of the prompt.