GetPublicKeyCredentialOption
class GetPublicKeyCredentialOption : CredentialOption
kotlin.Any | ||
↳ | 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 properties |
|
---|---|
ByteArray? |
a clientDataHash value to sign over in place of assembling and hashing clientDataJSON during the signature request; meaningful only if you have set the |
String |
the request in JSON format in the standard webauthn web json shown here. |
Inherited properties |
||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public constructors
GetPublicKeyCredentialOption
GetPublicKeyCredentialOption(
requestJson: String,
clientDataHash: ByteArray? = null,
allowedProviders: Set<ComponentName> = emptySet()
)
Constructs a GetPublicKeyCredentialOption
.
Parameters | |
---|---|
requestJson: String |
the request in JSON format in the standard webauthn web json shown here. |
clientDataHash: ByteArray? = null |
a clientDataHash value to sign over in place of assembling and hashing clientDataJSON during the signature request; set only if you have set the |
allowedProviders: Set<ComponentName> = emptySet() |
a set of provider service |
Throws | |
---|---|
kotlin.NullPointerException |
If |
kotlin.IllegalArgumentException |
If |
Public properties
clientDataHash
val clientDataHash: ByteArray?
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
requestJson
val requestJson: String
the request in JSON format in the standard webauthn web json shown here.