OpenID4VCILocalBackend

class OpenID4VCILocalBackend(val clientAssertionKey: AsymmetricKey, val attestationKey: AsymmetricKey, val clientId: String, val walletName: String, val walletLink: String) : OpenID4VCIBackend

An implementation of OpenID4VCIBackend where the back-end is implemented locally.

This is intended only for test apps.

Constructors

Link copied to clipboard
constructor(clientAssertionKey: AsymmetricKey, attestationKey: AsymmetricKey, clientId: String, walletName: String, walletLink: String)

Properties

Link copied to clipboard

the key used to mint key attestations.

Link copied to clipboard

the key used to mint client assertions.

Link copied to clipboard

value for client_id that this back-end will use.

Link copied to clipboard

an URL with information about the wallet.

Link copied to clipboard

the name of the wallet.

Functions

Link copied to clipboard
open suspend override fun createJwtClientAssertion(authorizationServerIdentifier: String): String

Creates fresh OAuth JWT client assertion based on the server-side key.

Link copied to clipboard
open suspend override fun createJwtKeyAttestation(credentialKeyAttestations: List<CredentialKeyAttestation>, challenge: String, userAuthentication: List<String>?, keyStorage: List<String>?): String

Creates OAuth JWT key attestation based on the given list of mobile-platform-specific KeyAttestations and key ids.

Link copied to clipboard
open suspend override fun createJwtWalletAttestation(keyAttestation: KeyAttestation): String

Creates OAuth JWT wallet attestation based on the mobile-platform-specific KeyAttestation.

Link copied to clipboard
open suspend override fun getClientId(): String

Value for client_id that this back-end will use.