OpenId4VpWallet

class OpenId4VpWallet(engine: HttpClientEngine, httpClientConfig: HttpClientConfig<*>.() -> Unit? = null, keyMaterial: KeyMaterial, holderAgent: HolderAgent)(source)

Implements the wallet side of Self-Issued OpenID Provider v2 - draft 13 and OpenID for Verifiable Presentations - draft 21

Constructors

Link copied to clipboard
constructor(engine: HttpClientEngine, httpClientConfig: HttpClientConfig<*>.() -> Unit? = null, keyMaterial: KeyMaterial, holderAgent: HolderAgent)

Types

Link copied to clipboard
Link copied to clipboard
sealed interface AuthenticationResult
Link copied to clipboard
Link copied to clipboard
class FormDataContentPlain(formData: Parameters) : OutgoingContent.ByteArrayContent

Our implementation of ktor's FormDataContent, but with contentType without charset appended, so that some strict mDoc verifiers accept our authn response

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Calls openId4VpHolder to finalize the authentication response. In case the result shall be POSTed to the verifier, we call client to do that, and return the redirect_uri of that POST (which the Wallet may open in a browser). In case the result shall be sent as a redirect to the verifier, we return that URL. In case the result shall be returned via the Digital Credentials API, an AuthenticationForward will be returned with the result to be forwarded.

Link copied to clipboard

Sends an error response with the appropriate method. Returns nothing as we don't expect a useful response.

Link copied to clipboard

Calls openId4VpHolder to finalize the authentication response. In case the result shall be POSTed to the verifier, we call client to do that, and return the redirect_uri of that POST (which the Wallet may open in a browser). In case the result shall be sent as a redirect to the verifier, we return that URL.