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.
| Throws | |
|---|---|
NullPointerException |
If |
IllegalArgumentException |
If |
Summary
Public constructors |
|---|
GetCredentialResponse(credential: Credential)Constructs a |
GetCredentialResponse(credentials: List<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
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 |
Public properties
credential
val credential: Credential
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
val credentials: List<Credential>
the list of user credentials returned by the provider(s) that can be used to authenticate to your app