# SignalAllAcceptedCredentialIdsRequest

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

*** ** * ** ***

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

<br />

```
class SignalAllAcceptedCredentialIdsRequest : SignalCredentialStateRequest
```

<br />

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

*** ** * ** ***

A request to signal the complete list of public key credentials ids for a given user.

## Summary

|                                                                                                                                                                                                                                                                                                                                                       ### Public constructors                                                                                                                                                                                                                                                                                                                                                       |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SignalAllAcceptedCredentialIdsRequest](https://developer.android.com/reference/kotlin/androidx/credentials/SignalAllAcceptedCredentialIdsRequest#SignalAllAcceptedCredentialIdsRequest(kotlin.String))`(requestJson: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` Constructs a request to signal the complete list of public key credentials ids for a given user.                                                                                                                                                                                                                                                                                                                        |
| `@`[RequiresPermission](https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission)`(value = "android.permission.CREDENTIAL_MANAGER_SET_ORIGIN", conditional = true)` [SignalAllAcceptedCredentialIdsRequest](https://developer.android.com/reference/kotlin/androidx/credentials/SignalAllAcceptedCredentialIdsRequest#SignalAllAcceptedCredentialIdsRequest(kotlin.String,kotlin.String))`(` ` requestJson: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`,` ` origin: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` `)` Constructs a request to signal the complete list of public key credentials ids for a given user. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ### Inherited properties                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.credentials.SignalCredentialStateRequest](https://developer.android.com/reference/kotlin/androidx/credentials/SignalCredentialStateRequest) |--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | [origin](https://developer.android.com/reference/kotlin/androidx/credentials/SignalCredentialStateRequest#origin()) the origin of a different application if the request is being made on behalf of that application (Note: for API level \>=34, setting a non-null value for this parameter will throw a SecurityException if android.permission.CREDENTIAL_MANAGER_SET_ORIGIN is not present)                                                                                                                                                                                       | | [Bundle](https://developer.android.com/reference/android/os/Bundle.html)             | [requestData](https://developer.android.com/reference/kotlin/androidx/credentials/SignalCredentialStateRequest#requestData()) the bundle to contain the request json and any additional info                                                                                                                                                                                                                                                                                                                                                                                          | | [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)    | [requestJson](https://developer.android.com/reference/kotlin/androidx/credentials/SignalCredentialStateRequest#requestJson()) the signal request data in the expected json format                                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)    | [type](https://developer.android.com/reference/kotlin/androidx/credentials/SignalCredentialStateRequest#type()) the request type representing one of[SignalAllAcceptedCredentialIdsRequest](https://developer.android.com/reference/kotlin/androidx/credentials/SignalAllAcceptedCredentialIdsRequest),[SignalCurrentUserDetailsRequest](https://developer.android.com/reference/kotlin/androidx/credentials/SignalCurrentUserDetailsRequest)and[SignalUnknownCredentialRequest](https://developer.android.com/reference/kotlin/androidx/credentials/SignalUnknownCredentialRequest)) | |

## Public constructors

### SignalAllAcceptedCredentialIdsRequest

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

```
SignalAllAcceptedCredentialIdsRequest(requestJson: String)
```

Constructs a request to signal the complete list of public key credentials ids for a given user.  

|                                            Parameters                                            |
|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `requestJson: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | the request in JSON format. The format of the JSON should follow the[WebAuthn Spec](https://w3c.github.io/webauthn/#sctn-signalAllAcceptedCredentials). Throws IllegalArgumentException if the json does not have the required keys according to the spec, or if base64url decoding fails for the user id or credential id. |

### SignalAllAcceptedCredentialIdsRequest

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

```
@RequiresPermission(value = "android.permission.CREDENTIAL_MANAGER_SET_ORIGIN", conditional = true)
SignalAllAcceptedCredentialIdsRequest(
    requestJson: String,
    origin: String?
)
```

Constructs a request to signal the complete list of public key credentials ids for a given user.  

|                                            Parameters                                            |
|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `requestJson: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | the request in JSON format. The format of the JSON should follow the[WebAuthn Spec](https://w3c.github.io/webauthn/#sctn-signalAllAcceptedCredentials). Throws IllegalArgumentException if the json does not have the required keys according to the spec, or if base64url decoding fails for the user id or credential id.                                                                                                                                                 |
| `origin: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?`   | the origin of a different application if the request is being made on behalf of that application, to be used only by browsers or privileged apps recognized by the target credential provider (Note: if a non-browser/non-privileged app sets an origin, it will be rejected across all API levels, and for API level \>=34, the calling party must also have the android.permission.CREDENTIAL_MANAGER_SET_ORIGIN permission otherwise a SecurityException will be thrown) |

|                                                                                                            Throws                                                                                                             |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|
| [kotlin.IllegalArgumentException](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html)                                                                                                | if request json validation fails                                                 |
| [androidx.credentials.exceptions.publickeycredential.SignalCredentialSecurityException](https://developer.android.com/reference/kotlin/androidx/credentials/exceptions/publickeycredential/SignalCredentialSecurityException) | if origin is set without having android.permission.CREDENTIAl_MANAGER_SET_ORIGIN |