DigitalCredential


@ExperimentalDigitalCredentialApi
class DigitalCredential : Credential


Represents the user's digital credential, generally used for verification or sign-in purposes.

Summary

Constants

const String

The type value for public key credential related operations.

Public constructors

DigitalCredential(credentialJson: String)

Constructs a DigitalCredential.

Public properties

String

the digital credential in the JSON format; the latest format is defined at https://wicg.github.io/digital-credentials/#the-digitalcredential-interface

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_DIGITAL_CREDENTIAL

const val TYPE_DIGITAL_CREDENTIALString

The type value for public key credential related operations.

Public constructors

DigitalCredential

Added in 1.5.0-beta01
DigitalCredential(credentialJson: String)

Constructs a DigitalCredential.

Parameters
credentialJson: String

the digital credential in the JSON format; the latest format is defined at https://wicg.github.io/digital-credentials/#the-digitalcredential-interface

Throws
kotlin.IllegalArgumentException

if the credentialJson is not a valid json

Public properties

credentialJson

Added in 1.5.0-beta01
val credentialJsonString

the digital credential in the JSON format; the latest format is defined at https://wicg.github.io/digital-credentials/#the-digitalcredential-interface