OpenId4VpWallet
class OpenId4VpWallet(openUrlExternally: suspend (String) -> Unit, engine: HttpClientEngine, httpClientConfig: HttpClientConfig<*>.() -> Unit? = null, cryptoService: CryptoService, 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(openUrlExternally: suspend (String) -> Unit, engine: HttpClientEngine, httpClientConfig: HttpClientConfig<*>.() -> Unit? = null, cryptoService: CryptoService, holderAgent: HolderAgent)
Functions
Link copied to clipboard
suspend fun finalizeAuthorizationResponse(request: RequestParametersFrom<AuthenticationRequestParameters>, preparationState: AuthorizationResponsePreparationState, inputDescriptorSubmission: Map<String, CredentialSubmission>): KmmResult<Unit>
Calls oidcSiopWallet to finalize the authentication response. In case the result shall be POSTed to the verifier, we call client to do that, and optionally openUrlExternally with the redirect_uri
of that POST. In case the result shall be sent as a redirect to the verifier, we call openUrlExternally.
Link copied to clipboard
suspend fun parseAuthenticationRequestParameters(input: String): KmmResult<RequestParametersFrom<AuthenticationRequestParameters>>
Link copied to clipboard
suspend fun startAuthorizationResponsePreparation(request: RequestParametersFrom<AuthenticationRequestParameters>): KmmResult<AuthorizationResponsePreparationState>
suspend fun startAuthorizationResponsePreparation(input: String): KmmResult<AuthorizationResponsePreparationState>
Link copied to clipboard
suspend fun startPresentation(request: RequestParametersFrom<AuthenticationRequestParameters>): KmmResult<Unit>
Calls oidcSiopWallet to create the authentication response. In case the result shall be POSTed to the verifier, we call client to do that, and optionally openUrlExternally with the redirect_uri
of that POST. In case the result shall be sent as a redirect to the verifier, we call openUrlExternally.