DigitalCredentials

An interface for interacting with the W3C Digital Credentials API provider on the platform, if available.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val available: Boolean

Whether this API is available on the platform.

Link copied to clipboard

The set of W3C Digital Credentials protocols currently selected.

Link copied to clipboard

The set of W3C Digital Credentials protocols supported.

Functions

Link copied to clipboard
abstract suspend fun request(request: JsonObject): JsonObject

Request credentials from wallet applications.

Link copied to clipboard
abstract suspend fun setSelectedProtocols(protocols: Set<String>)

Sets the supported W3C Digital Credentials protocols, in order of preference.

Link copied to clipboard
abstract suspend fun startExportingCredentials(documentStore: DocumentStore, documentTypeRepository: DocumentTypeRepository)

Registers all documents in the given DocumentStore with the platform.

Link copied to clipboard
abstract suspend fun stopExportingCredentials(documentStore: DocumentStore)

Stops exporting documents.