# CreateCustomCredentialResponse

Artifact: [androidx.credentials:credentials](https://developer.android.com/jetpack/androidx/releases/credentials) [View Source](https://cs.android.com/search?q=file:androidx/credentials/CreateCustomCredentialResponse.kt+class:androidx.credentials.CreateCustomCredentialResponse) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/credentials#1.2.0)

*** ** * ** ***

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


```
open class CreateCustomCredentialResponse : CreateCredentialResponse
```

<br />

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

*** ** * ** ***

Base custom create response class for the credential creation operation made with the `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCustomCredentialRequest`.

If you get a `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCustomCredentialResponse` instead of a type-safe response class such as `https://developer.android.com/reference/kotlin/androidx/credentials/CreatePasswordResponse`, `https://developer.android.com/reference/kotlin/androidx/credentials/CreatePublicKeyCredentialResponse`, etc., then you should check if you have any other library at interest that supports this custom `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCustomCredentialResponse#(kotlin.String,android.os.Bundle)` of credential response, and if so use its parsing utilities to resolve to a type-safe class within that library.

Note: The Bundle keys for `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCustomCredentialResponse#(kotlin.String,android.os.Bundle)` should not be in the form of androidx.credentials.\*\` as they are reserved for internal use by this androidx library.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | If `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCustomCredentialResponse#(kotlin.String,android.os.Bundle)` is empty |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-null-pointer-exception/index.html` | If `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCustomCredentialResponse#(kotlin.String,android.os.Bundle)` or `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCustomCredentialResponse#(kotlin.String,android.os.Bundle)` are null |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCustomCredentialResponse#CreateCustomCredentialResponse(kotlin.String,android.os.Bundle)(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, data: https://developer.android.com/reference/android/os/Bundle.html)` |

| ### Inherited properties |
|---|
| From [androidx.credentials.CreateCredentialResponse](https://developer.android.com/reference/kotlin/androidx/credentials/CreateCredentialResponse) |---|---| | `https://developer.android.com/reference/android/os/Bundle.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCredentialResponse#data()` the response data in the `https://developer.android.com/reference/android/os/Bundle.html` format | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/CreateCredentialResponse#type()` the credential type determined by the credential-type-specific subclass (e.g. the type for `https://developer.android.com/reference/kotlin/androidx/credentials/CreatePasswordResponse` is `https://developer.android.com/reference/kotlin/androidx/credentials/PasswordCredential#TYPE_PASSWORD_CREDENTIAL()` and for `https://developer.android.com/reference/kotlin/androidx/credentials/CreatePublicKeyCredentialResponse` is `https://developer.android.com/reference/kotlin/androidx/credentials/PublicKeyCredential#TYPE_PUBLIC_KEY_CREDENTIAL()`) | |

## Public constructors

### CreateCustomCredentialResponse

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/credentials#1.2.0)

```
CreateCustomCredentialResponse(type: String, data: Bundle)
```

| Parameters |
|---|---|
| `type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | the credential type determined by the credential-type-specific subclass for custom use cases |
| `data: https://developer.android.com/reference/android/os/Bundle.html` | the response data in the `https://developer.android.com/reference/android/os/Bundle.html` format for custom use cases (note: bundle keys in the form of `androidx.credentials.*` and `android.credentials.*` are reserved for internal library usage) |