# ExportCredentialsRequest

Artifact: [androidx.credentials.providerevents:providerevents](https://developer.android.com/jetpack/androidx/releases/credentials-providerevents) [View Source](https://cs.android.com/search?q=file:androidx/credentials/providerevents/transfer/ExportCredentialsRequest.kt+class:androidx.credentials.providerevents.transfer.ExportCredentialsRequest) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/credentials-providerevents#1.0.0-beta01)

*** ** * ** ***


```
public final class ExportCredentialsRequest
```

<br />

*** ** * ** ***

a request to export a set of credentials into the provider

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | If `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ExportCredentialsRequest#credentialsJson()` is empty, or if it is not a valid JSON |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ExportCredentialsRequest#ExportCredentialsRequest(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html credentialsJson)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ExportCredentialsRequest#getCredentialsJson()()` the credentials that are delivered to the provider formatted as per [Fido Credential Exchange Format](https://fidoalliance.org/specs/cx/cxf-v1.0-rd-20250313.html) |

## Public constructors

### ExportCredentialsRequest

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/credentials-providerevents#1.0.0-beta01)

```
public ExportCredentialsRequest(@NonNull String credentialsJson)
```

## Public methods

### getCredentialsJson

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/credentials-providerevents#1.0.0-beta01)

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

the credentials that are delivered to the provider formatted as per [Fido Credential Exchange Format](https://fidoalliance.org/specs/cx/cxf-v1.0-rd-20250313.html)