UriSchemePresentmentMechanism

abstract class UriSchemePresentmentMechanism(val uri: String, val origin: String?, val httpClientEngineFactory: HttpClientEngineFactory<*>) : PresentmentMechanism

A PresentmentMechanism to use with PresentmentModel when using presentations implemented via URI schemes such as mdoc:// or openid4vp://.

Constructors

Link copied to clipboard
constructor(uri: String, origin: String?, httpClientEngineFactory: HttpClientEngineFactory<*>)

Properties

Link copied to clipboard
val httpClientEngineFactory: HttpClientEngineFactory<*>

a HttpClientEngineFactory that can be used to make network requests.

Link copied to clipboard

the origin of the site which invoked the URI or null if unknown.

Link copied to clipboard
val uri: String

the full URI received from the browser, including the scheme, e.g. openid4vp://

Functions

Link copied to clipboard
abstract fun close()

Closes down the connection and release all resources.

Link copied to clipboard
abstract fun openUriInBrowser(uri: String)

Function to open an URI in the user's default browser.