PublicKeyCredential


class PublicKeyCredential : Credential


Represents the user's passkey credential granted by the user for app sign-in.

Summary

Constants

const String

The type value for public key credential related operations.

Public constructors

PublicKeyCredential(authenticationResponseJson: String)

Constructs a PublicKeyCredential.

Public properties

String

the public key credential authentication response in JSON format that follows the standard webauthn json format shown at this w3c link

Inherited properties

From androidx.credentials.Credential
Bundle

the credential data in the Bundle format

String

the credential type determined by the credential-type-specific subclass (e.g. PasswordCredential.TYPE_PASSWORD_CREDENTIAL for PasswordCredential or PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL for PublicKeyCredential)

Constants

TYPE_PUBLIC_KEY_CREDENTIAL

const val TYPE_PUBLIC_KEY_CREDENTIALString

The type value for public key credential related operations.

Public constructors

PublicKeyCredential

Added in 1.2.0
PublicKeyCredential(authenticationResponseJson: String)

Constructs a PublicKeyCredential.

Parameters
authenticationResponseJson: String

the public key credential authentication response in JSON format that follows the standard webauthn json format shown at this w3c link

Public properties

authenticationResponseJson

Added in 1.2.0
val authenticationResponseJsonString

the public key credential authentication response in JSON format that follows the standard webauthn json format shown at this w3c link