GetRestoreCredentialOption
public final class GetRestoreCredentialOption extends CredentialOption
| java.lang.Object | ||
| ↳ | 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(@NonNull String requestJson) |
Public methods |
|
|---|---|
final @NonNull String |
the request in JSON format in the standard webauthn web json (https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptionsjson). |
Inherited methods |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
GetRestoreCredentialOption
public GetRestoreCredentialOption(@NonNull String requestJson)
Public methods
getRequestJson
public final @NonNull String getRequestJson()
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.