OpenId4VciClient

class OpenId4VciClient(openUrlExternally: suspend (String) -> Unit, engine: HttpClientEngine, cookiesStorage: CookiesStorage? = null, httpClientConfig: HttpClientConfig<*>.() -> Unit? = null, storeProvisioningContext: suspend (ProvisioningContext) -> Unit, loadProvisioningContext: suspend () -> ProvisioningContext?, loadClientAttestationJwt: suspend () -> String, cryptoService: CryptoService, holderAgent: HolderAgent, redirectUrl: String, clientId: String)(source)

Implements the client side of OpenID for Verifiable Credential Issuance - draft 14.

Supported features:

Constructors

Link copied to clipboard
constructor(openUrlExternally: suspend (String) -> Unit, engine: HttpClientEngine, cookiesStorage: CookiesStorage? = null, httpClientConfig: HttpClientConfig<*>.() -> Unit? = null, storeProvisioningContext: suspend (ProvisioningContext) -> Unit, loadProvisioningContext: suspend () -> ProvisioningContext?, loadClientAttestationJwt: suspend () -> String, cryptoService: CryptoService, holderAgent: HolderAgent, redirectUrl: String, clientId: String)

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Loads credential metadata info from host

Link copied to clipboard
suspend fun loadCredentialWithOffer(credentialOffer: CredentialOffer, credentialIdentifierInfo: CredentialIdentifierInfo, transactionCode: String? = null, requestedAttributes: Set<NormalizedJsonPath>?): KmmResult<Unit>

Loads a user-selected credential with pre-authorized code from the OID4VCI credential issuer

Link copied to clipboard
suspend fun resumeWithAuthCode(url: String): KmmResult<Unit>

Called after getting the redirect back from ID Austria to the Issuing Service

Link copied to clipboard
suspend fun startProvisioningWithAuthRequest(credentialIssuer: String, credentialIdentifierInfo: CredentialIdentifierInfo, requestedAttributes: Set<NormalizedJsonPath>?): KmmResult<Unit>

Starts the issuing process at credentialIssuer