RetrieveCredentialResult

@Serializable
data class RetrieveCredentialResult(val docType: String, val credentialId: String?, val error: RetrieveCredentialError?)

Represents a result of a mobile credential retrieval over OpenID4VCI.

Parameters

docType

Document type. Will be present independently of whether the retrieval was successful or not.

credentialId

Local ID of the credential in the device storage. Will be null if the retrieval has failed. You can use this ID to retrieve the credential from the SDK, using the getCredential function. It is not necessary to store the ID in the app data for later usage, as you can get the IDs and basic details of all of the stored credentials, using the getCredentials function.

error

Error that occurred during the retrieval process, or null if the retrieval was successful.

Constructors

Link copied to clipboard
constructor(docType: String, credentialId: String)
constructor(docType: String, error: RetrieveCredentialError)
constructor(docType: String, credentialId: String?, error: RetrieveCredentialError?)

Properties

Link copied to clipboard
val credentialId: String?
Link copied to clipboard
val docType: String
Link copied to clipboard