retrieveCredentials

suspend fun retrieveCredentials(activity: Activity, credentialOffer: DiscoveredCredentialOffer, clientId: String, redirectUri: String, autoTrustMobileCredentialIaca: Boolean = false): List<RetrieveCredentialResult>

Retrieve credentials from a credential offer according to the authorization process defined by OIDC4VCI - Authorization code flow

Parameters

activity

An Android Activity from where this function is called. The Context is needed for showing a browser with user consent form as well as for biometric user authentication, which is used in the device key generation flow.

credentialOffer

credential offer returned from discoverCredentialOffer

clientId

Client Id of the credential issuer

redirectUri

used to successfully redirect the user back to the app after authorization

autoTrustMobileCredentialIaca

optional parameter allowing the automatic download and storage of the issuers IACA certificate if it is available in the issuers metadata. Defaults to false.

Throws