fromRequest

fun fromRequest(request: JsonObject): CredmanCredentialOffer?

Finds the credential offer in a request received from Credential Manager.

This returns the first request whose data has a credential_issuer and a non-empty credential_configuration_ids, in the same way the issuance matcher decides whether to show the application to the user.

Return

the offer or null if the request doesn't contain a credential offer.

Parameters

request

the request JSON, with a requests array.