DigitalCredentialsPresentmentMechanism

abstract class DigitalCredentialsPresentmentMechanism(val appId: String, val origin: String, val protocol: String, val data: JsonObject, val preselectedDocuments: List<Document>) : PresentmentMechanism

A PresentmentMechanism to use with PresentmentModel when using presentations via DigitalCredentials and the W3C Digital Credentials API.

Constructors

Link copied to clipboard
constructor(appId: String, origin: String, protocol: String, data: JsonObject, preselectedDocuments: List<Document>)

Properties

Link copied to clipboard

the id of the application making the request.

Link copied to clipboard
val data: JsonObject

the data field in the DigitalCredentialGetRequest dictionary in the W3C DC API.

Link copied to clipboard

the origin of the requester.

Link copied to clipboard

the list of documents the user may have preselected earlier (for example an OS-provided credential picker like Android's Credential Manager) or the empty list if the user didn't preselect.

Link copied to clipboard

the protocol field in the DigitalCredentialGetRequest dictionary in to the W3C DC API.

Functions

Link copied to clipboard
abstract fun close()

Closes down the connection and release all resources.

Link copied to clipboard
abstract fun sendResponse(protocol: String, data: JsonObject)

Sends the response back to the caller.