execute
suspend fun execute(presentmentSource: PresentmentSource, keyAgreementPossible: List<EcCurve> = emptyList()): CredentialPresentmentData
Executes the ISO 18013-5 request against a PresentmentSource.
If successful, this returns a CredentialPresentmentData which can be used in an user interface for the user to select which combination of credentials to return, see Consent composable in multipaz-compose and Consent view in multipaz-swift for examples of how to do this.
If the query cannot be satisfied, Iso18015ResponseException is thrown.
Return
the resulting CredentialPresentmentData if the query was successful.
Parameters
presentmentSource
the PresentmentSource to use as a source of truth for presentment.
keyAgreementPossible
if non-empty, a credential using Key Agreement may be returned provided its private key is using one of the given curves.
Throws
if it's not possible satisfy the query.