toMdocRequest
fun DeviceRequestParser.DocRequest.toMdocRequest(documentTypeRepository: DocumentTypeRepository, mdocCredential: MdocCredential?, requesterAppId: String? = null, requesterWebsiteOrigin: String? = null): MdocRequest
Convert to a MdocRequest.
Parameters
documentTypeRepository
a DocumentTypeRepository used to determine the display name for claims.
mdocCredential
if set, the returned list is filtered so it only references data elements available in the credential.
requesterAppId
the appId if an app is making the request or null
.
requesterWebsiteOrigin
the website origin if a website is making the request or null
.