# RegisterCreationOptionsRequest

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

*** ** * ** ***

<br />

```
abstract class RegisterCreationOptionsRequest
```

<br />

*** ** * ** ***

A request to register creation options with Credential Manager.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#id()` or `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#intentAction()` length is greater than 64 characters |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#RegisterCreationOptionsRequest(kotlin.String,kotlin.String,kotlin.ByteArray,kotlin.ByteArray,kotlin.String)( type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, creationOptions: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html, matcher: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html, intentAction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#creationOptions()` the data to be stored in the registry, later to be passed to the `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#matcher()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#id()` the unique id that identifies this registry, such that it won't be overwritten by other different registries of the same `type` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#intentAction()` the intent action that will be used to launch your fulfillment activity when your app was chosen by the user to create the given credential, default to `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegistryManager#ACTION_CREATE_CREDENTIAL()` when unspecified; when Credential Manager launches your fulfillment activity, it will build an intent with the given `intentAction` targeting your package, so this is useful when you need to define different fulfillment activities for different registries |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#matcher()` the matcher wasm binary in bytes; the matcher will be interpreted and run in a safe and privacy-preserving sandbox upon an incoming request and it should output the qualified entries given the `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#creationOptions()` and the request; an invalid matcher (e.g. one that fails wasm interpretation or causes exceptions) will mean that your application will never be surfaced to the user during creation |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#type()` the type of the credentials to be created being registered |

## Public constructors

### RegisterCreationOptionsRequest

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

```
RegisterCreationOptionsRequest(
    type: String,
    id: String,
    creationOptions: ByteArray,
    matcher: ByteArray,
    intentAction: String = RegistryManager.ACTION_CREATE_CREDENTIAL
)
```

## Public properties

### creationOptions

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

```
val creationOptions: ByteArray
```

the data to be stored in the registry, later to be passed to the `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#matcher()`.

### id

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

```
val id: String
```

the unique id that identifies this registry, such that it won't be overwritten by other different registries of the same `type`

### intentAction

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

```
val intentAction: String
```

the intent action that will be used to launch your fulfillment activity when your app was chosen by the user to create the given credential, default to `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegistryManager#ACTION_CREATE_CREDENTIAL()` when unspecified; when Credential Manager launches your fulfillment activity, it will build an intent with the given `intentAction` targeting your package, so this is useful when you need to define different fulfillment activities for different registries

### matcher

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

```
val matcher: ByteArray
```

the matcher wasm binary in bytes; the matcher will be interpreted and run in a safe and privacy-preserving sandbox upon an incoming request and it should output the qualified entries given the `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/RegisterCreationOptionsRequest#creationOptions()` and the request; an invalid matcher (e.g. one that fails wasm interpretation or causes exceptions) will mean that your application will never be surfaced to the user during creation

### type

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

```
val type: String
```

the type of the credentials to be created being registered