GetRestoreCredentialOption
class GetRestoreCredentialOption : CredentialOption
| kotlin.Any | ||
| ↳ | androidx.credentials.CredentialOption | |
| ↳ | androidx.credentials.GetRestoreCredentialOption |
A request to get the restore credential from the restore credential provider.
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if the requestJson is an invalid Json that does not follow the standard webauthn web json format |
androidx.credentials.exceptions.NoCredentialException |
if no viable restore credential is found |
kotlin.IllegalArgumentException |
if the option is mixed with another |
Summary
Public constructors |
|---|
GetRestoreCredentialOption(requestJson: String) |
Public properties |
|
|---|---|
String |
the request in JSON format in the standard webauthn web json (https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptionsjson). |
Inherited properties |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
Public properties
requestJson
val requestJson: String
the request in JSON format in the standard webauthn web json (https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptionsjson).
Note that the userVerification field of the requestJson will always be overridden to discouraged to support passive authentication during restore flow.
GetRestoreCredentialOption cannot be requested with other credential options because of conflicting user experience. When requesting restore credential, only a single GetRestoreCredentialOption must be supplied.