GetCredentialResponse


class GetCredentialResponse


Encapsulates the result of a user credential request.

Typically, a response contains a single user credential in credential (such as a passkey or a password). However, for DigitalCredentials, a single request may yield multiple credentials returned in credentials.

Summary

Public constructors

Constructs a GetCredentialResponse containing a single credential.

Public properties

Credential

The user credential that can be used to authenticate to your app.

List<Credential>

the list of user credentials returned by the provider(s) that can be used to authenticate to your app

Public constructors

GetCredentialResponse

Added in 1.2.0
GetCredentialResponse(credential: Credential)

Constructs a GetCredentialResponse containing a single credential.

Parameters
credential: Credential

the user credential that can be used to authenticate to your app

Throws
NullPointerException

If credential is null

GetCredentialResponse

GetCredentialResponse(credentials: List<Credential>)

Public properties

credential

Added in 1.2.0
val credentialCredential

The user credential that can be used to authenticate to your app.

When multiple credentials are returned in credentials, this returns the first credential.

credentials

Added in 1.7.0-alpha03
val credentialsList<Credential>

the list of user credentials returned by the provider(s) that can be used to authenticate to your app