# AuthenticationRequest.Credential.Builder

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.Builder) Added in [1.4.0-beta01](https://developer.android.com/jetpack/androidx/releases/biometric#1.4.0-beta01)

*** ** * ** ***


```
class AuthenticationRequest.Credential.Builder
```

<br />

*** ** * ** ***

Builder used to create an instance of `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential`.

**Note for Kotlin users:** Prefer using the `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest#credentialRequest(kotlin.String,kotlin.Function1)` function to construct `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential` instances.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential.Builder#Builder(kotlin.String)(title: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` |

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

## Public constructors

### Builder

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

```
Builder(title: String)
```

| Parameters |
|---|---|
| `title: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The title of the prompt. |

## Public functions

### build

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

```
fun build(): AuthenticationRequest.Credential
```

Construct an instance of `https://developer.android.com/reference/kotlin/androidx/biometric/AuthenticationRequest.Credential`.

### setContent

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

```
fun setContent(content: AuthenticationRequest.BodyContent?): AuthenticationRequest.Credential.Builder
```

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

### setCryptoObject

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

```
fun setCryptoObject(cryptoObject: BiometricPrompt.CryptoObject?): AuthenticationRequest.Credential.Builder
```

An optional cryptographic object to be associated with the authentication.

### setSubtitle

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

```
fun setSubtitle(subtitle: String?): AuthenticationRequest.Credential.Builder
```

The optional subtitle of the prompt.