# ImportCredentialsRequest

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/ImportCredentialsRequest.kt+class:androidx.credentials.providerevents.transfer.ImportCredentialsRequest)  
Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-providerevents#1.0.0-alpha05)

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/credentials/providerevents/transfer/ImportCredentialsRequest "View this page in Java")


```
class ImportCredentialsRequest
```

<br />

*** ** * ** ***

A request to import the provider's credentials, following the [FIDO Credential exchange format](https://fidoalliance.org/specs/cx/cxf-v1.0-ps-20250814.html)

## Summary

| ### Public constructors |
|---|
| [ImportCredentialsRequest](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/ImportCredentialsRequest#ImportCredentialsRequest(kotlin.collections.Set,kotlin.collections.Set))`(` ` credentialTypes: `[Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`>,` ` knownExtensions: `[Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`>` `)` |

| ### Public properties |
|---|---|
| [Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`>` | [credentialTypes](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/ImportCredentialsRequest#credentialTypes()) the credential types that the requester supports. |
| [Set](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html)`<`[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`>` | [knownExtensions](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/ImportCredentialsRequest#knownExtensions()) the known extensions that the importer supports. |

## Public constructors

### ImportCredentialsRequest

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

```
ImportCredentialsRequest(
    credentialTypes: Set<String>,
    knownExtensions: Set<String>
)
```  

## Public properties

### credentialTypes

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

```
val credentialTypes: Set<String>
```

the credential types that the requester supports. By default, this field will be used to filter which [ExportEntry](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/ExportEntry) will be displayed. The values include, but not limited to, the constants in [CredentialTypes](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/CredentialTypes). This cannot be empty. The exporter should return credentials that map to the requested types. Unknown values should be ignored.  

### knownExtensions

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

```
val knownExtensions: Set<String>
```

the known extensions that the importer supports. The values include, but not limited to, the constants in [KnownExtensions](https://developer.android.com/reference/kotlin/androidx/credentials/providerevents/transfer/KnownExtensions). This can be empty. The exporter should return extensions that map to the requested extensions. Unknown values should be ignored.