getPresentmentData
suspend fun DeviceRequestParser.DocRequest.getPresentmentData(documentTypeRepository: DocumentTypeRepository, source: PresentmentSource, keyAgreementPossible: List<EcCurve>): CredentialPresentmentData?
Generates a CredentialPresentmentData with matches for each MdocCredential satisfying the doc request.
Return
a CredentialPresentmentData or null
if no credentials satisfy the request.
Parameters
documentTypeRepository
source
a PresentmentSource to use as the source of truth for what credentials can be returned.
keyAgreementPossible
if non-empty, a credential using Key Agreement may be returned provided its private key is one of the given curves.