MobileWalletConfig

data class MobileWalletConfig(val walletId: String = "default", val defaultKeyType: MobileWalletKeyType = MobileWalletKeyType.secp256r1, val attestationConfig: WalletAttestationConfig? = null, val persistence: MobileWalletPersistence = MobileWalletPersistence(), val onEvent: suspend (MobileWalletEvent) -> Unit = {}, val preferredLocales: List<String> = emptyList(), val transactionDataProfiles: List<MobileWalletTransactionDataProfile> = emptyList(), val credentialIssuerMetadataTrustResolver: CredentialIssuerMetadataTrustResolver? = null, val credentialRegistry: MobileWalletCredentialRegistry = UnavailableMobileWalletCredentialRegistry, val readerTrustEvaluator: MobileWalletReaderTrustEvaluator = UnconfiguredMobileWalletReaderTrustEvaluator, val crossProcessAccess: MobileWalletCrossProcessAccess? = null, val onDigitalCredentialRegistryChanged: suspend () -> Unit = {}, val defaultKeyUseAuthorizationPolicy: KeyUseAuthorizationPolicy = KeyUseAuthorizationPolicy.BiometricCurrentSet, val keyUseAuthorizationPrompt: KeyUseAuthorizationPrompt = KeyUseAuthorizationPrompt())

Configuration for creating a MobileWallet.

Constructors

Link copied to clipboard
constructor(walletId: String = "default", defaultKeyType: MobileWalletKeyType = MobileWalletKeyType.secp256r1, attestationConfig: WalletAttestationConfig? = null, persistence: MobileWalletPersistence = MobileWalletPersistence(), onEvent: suspend (MobileWalletEvent) -> Unit = {}, preferredLocales: List<String> = emptyList(), transactionDataProfiles: List<MobileWalletTransactionDataProfile> = emptyList(), credentialIssuerMetadataTrustResolver: CredentialIssuerMetadataTrustResolver? = null, credentialRegistry: MobileWalletCredentialRegistry = UnavailableMobileWalletCredentialRegistry, readerTrustEvaluator: MobileWalletReaderTrustEvaluator = UnconfiguredMobileWalletReaderTrustEvaluator, crossProcessAccess: MobileWalletCrossProcessAccess? = null, onDigitalCredentialRegistryChanged: suspend () -> Unit = {}, defaultKeyUseAuthorizationPolicy: KeyUseAuthorizationPolicy = KeyUseAuthorizationPolicy.BiometricCurrentSet, keyUseAuthorizationPrompt: KeyUseAuthorizationPrompt = KeyUseAuthorizationPrompt())

Properties

Link copied to clipboard

Optional client-attestation configuration for issuer deployments that require it.

Link copied to clipboard
val credentialIssuerMetadataTrustResolver: CredentialIssuerMetadataTrustResolver?

Optional trust boundary for signed Credential Issuer Metadata. When absent, signed metadata is neither requested nor accepted.

Link copied to clipboard

Platform metadata registry. Platform factories install their native default when omitted.

Link copied to clipboard

Optional shared-container/keychain configuration for provider extensions.

Link copied to clipboard

Key type used by MobileWallet.bootstrap when no key type override is supplied.

Link copied to clipboard
val defaultKeyUseAuthorizationPolicy: KeyUseAuthorizationPolicy

Authorization policy used for newly created keys. The policy never changes an existing persisted key.

Link copied to clipboard
val keyUseAuthorizationPrompt: KeyUseAuthorizationPrompt

Prompt text used for protected signing operations.

Link copied to clipboard

Called after a credential-set mutation republishes platform registration metadata. Failures do not roll back the committed wallet mutation.

Link copied to clipboard
val onEvent: suspend (MobileWalletEvent) -> Unit

Optional callback for observing wallet issuance and presentation session events.

Link copied to clipboard

Persistence mode used for wallet-local state.

Link copied to clipboard

Ordered BCP 47 locale preferences used for progressive language-tag lookup. When no preference matches, selection falls back to an unlocalized entry and then the first entry.

Link copied to clipboard

Application trust policy for verified ISO 18013-7 reader chains.

Link copied to clipboard

Transaction data profiles this mobile wallet accepts in OpenID4VP requests.

Link copied to clipboard

Stable wallet identifier used for database naming and persisted wallet state.