GetDigitalCredentialOption
@ExperimentalDigitalCredentialApi
public final class GetDigitalCredentialOption extends CredentialOption
| java.lang.Object | ||
| ↳ | androidx.credentials.CredentialOption | |
| ↳ | androidx.credentials.GetDigitalCredentialOption |
A request to retrieve the user's digital credential, normally used for verification or sign-in purpose.
Note that this option cannot be combined with other types of options in a single GetCredentialRequest.
Summary
Public constructors |
|---|
GetDigitalCredentialOption(@NonNull String requestJson)Constructs a |
Public methods |
|
|---|---|
final @NonNull String |
the request in the JSON format; the latest format is defined at https://wicg.github.io/digital-credentials/#the-digitalcredentialrequestoptions-dictionary |
Inherited methods |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
GetDigitalCredentialOption
public GetDigitalCredentialOption(@NonNull String requestJson)
Constructs a GetDigitalCredentialOption.
Note that this option cannot be combined with other types of options in a single GetCredentialRequest.
| Parameters | |
|---|---|
@NonNull String requestJson |
the request in the JSON format; the latest format is defined at https://wicg.github.io/digital-credentials/#the-digitalcredentialrequestoptions-dictionary |
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if the |
Public methods
getRequestJson
public final @NonNull String getRequestJson()
the request in the JSON format; the latest format is defined at https://wicg.github.io/digital-credentials/#the-digitalcredentialrequestoptions-dictionary