DigitalCredentialsPresentmentMechanism

abstract class DigitalCredentialsPresentmentMechanism(val appId: String, val webOrigin: String?, val protocol: String, val data: String, val document: 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, webOrigin: String?, protocol: String, data: String, document: Document?)

Properties

Link copied to clipboard

the id of the application making the request.

Link copied to clipboard

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

Link copied to clipboard

the Document the request is for or null if a document wasn't selected by the user.

Link copied to clipboard

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

Link copied to clipboard

the origin of the website if the application is a web browser, or null if it's not.

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.