GetPublicKeyCredentialOption
public final class GetPublicKeyCredentialOption extends CredentialOption
| java.lang.Object | ||
| ↳ | androidx.credentials.CredentialOption | |
| ↳ | androidx.credentials.GetPublicKeyCredentialOption |
A request to get passkeys from the user's public key credential provider.
Summary
Public constructors |
|---|
GetPublicKeyCredentialOption(Constructs a |
Public methods |
|
|---|---|
final byte[] |
a clientDataHash value to sign over in place of assembling and hashing clientDataJSON during the signature request; meaningful only if you have set the |
final @NonNull String |
the request in JSON format in the standard webauthn web json shown here. |
Inherited methods |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
GetPublicKeyCredentialOption
public GetPublicKeyCredentialOption(
@NonNull String requestJson,
byte[] clientDataHash,
@NonNull Set<@NonNull ComponentName> allowedProviders
)
Constructs a GetPublicKeyCredentialOption.
| Parameters | |
|---|---|
@NonNull String requestJson |
the request in JSON format in the standard webauthn web json shown here. |
byte[] clientDataHash |
a clientDataHash value to sign over in place of assembling and hashing clientDataJSON during the signature request; set only if you have set the |
@NonNull Set<@NonNull ComponentName> allowedProviders |
a set of provider service |
| Throws | |
|---|---|
kotlin.NullPointerException |
If |
kotlin.IllegalArgumentException |
If |
Public methods
getClientDataHash
public final byte[] getClientDataHash()
a clientDataHash value to sign over in place of assembling and hashing clientDataJSON during the signature request; meaningful only if you have set the GetCredentialRequest.origin
getRequestJson
public final @NonNull String getRequestJson()
the request in JSON format in the standard webauthn web json shown here.