retrieve Credentials
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.
credential Offer
credential offer returned from discoverCredentialOffer
client Id
Client Id of the credential issuer
redirect Uri
used to successfully redirect the user back to the app after authorization
auto Trust Mobile Credential Iaca
optional parameter allowing the automatic download and storage of the issuers IACA certificate if it is available in the issuers metadata. Defaults to false
.