# 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)
public final class AuthenticationRequest.Credential extends AuthenticationRequest
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.biometric.AuthenticationRequest](https://developer.android.com/reference/androidx/biometric/AuthenticationRequest) ||
|   | ↳ | [androidx.biometric.AuthenticationRequest.Credential](https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Credential) |

*** ** * ** ***

A set of configurable options for how the `https://developer.android.com/reference/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 |
|---|
| `public final class https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Credential.Builder` Builder used to create an instance of `https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Credential`. |

| ### Public methods |
|---|---|
| `final https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.BodyContent` | `https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Credential#getContent()()` The optional `https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.BodyContent` of the prompt. |
| `final https://developer.android.com/reference/androidx/biometric/BiometricPrompt.CryptoObject` | `https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Credential#getCryptoObject()()` An optional cryptographic object to be associated with the authentication. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Credential#getSubtitle()()` The optional subtitle of the prompt. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/biometric/AuthenticationRequest.Credential#getTitle()()` The title of the prompt. |

## Public methods

### getContent

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

```
public final AuthenticationRequest.BodyContent getContent()
```

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

### getCryptoObject

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

```
public final BiometricPrompt.CryptoObject getCryptoObject()
```

An optional cryptographic object to be associated with the authentication.

### getSubtitle

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

```
public final String getSubtitle()
```

The optional subtitle of the prompt.

### getTitle

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

```
public final @NonNull String getTitle()
```

The title of the prompt.