SignalAllAcceptedCredentialIdsRequest
public final class SignalAllAcceptedCredentialIdsRequest extends SignalCredentialStateRequest
| java.lang.Object | ||
| ↳ | androidx.credentials.SignalCredentialStateRequest | |
| ↳ | androidx.credentials.SignalAllAcceptedCredentialIdsRequest |
A request to signal the complete list of public key credentials ids for a given user.
Summary
Public constructors |
|---|
SignalAllAcceptedCredentialIdsRequest(@NonNull String requestJson)Constructs a request to signal the complete list of public key credentials ids for a given user. |
@RequiresPermission(value = "android.permission.CREDENTIAL_MANAGER_SET_ORIGIN", conditional = true)Constructs a request to signal the complete list of public key credentials ids for a given user. |
Inherited methods |
||||||||
|---|---|---|---|---|---|---|---|---|
|
Public constructors
SignalAllAcceptedCredentialIdsRequest
public SignalAllAcceptedCredentialIdsRequest(@NonNull String requestJson)
Constructs a request to signal the complete list of public key credentials ids for a given user.
| Parameters | |
|---|---|
@NonNull String requestJson |
the request in JSON format. The format of the JSON should follow the WebAuthn Spec. 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
@RequiresPermission(value = "android.permission.CREDENTIAL_MANAGER_SET_ORIGIN", conditional = true)
public SignalAllAcceptedCredentialIdsRequest(
@NonNull String requestJson,
String origin
)
Constructs a request to signal the complete list of public key credentials ids for a given user.
| Parameters | |
|---|---|
@NonNull String requestJson |
the request in JSON format. The format of the JSON should follow the WebAuthn Spec. 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. |
String origin |
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 |
if request json validation fails |
androidx.credentials.exceptions.publickeycredential.SignalCredentialSecurityException |
if origin is set without having android.permission.CREDENTIAl_MANAGER_SET_ORIGIN |