toMdocRequest
fun toMdocRequest(documentTypeRepository: DocumentTypeRepository, mdocCredential: MdocCredential?, requesterAppId: String? = null, requesterOrigin: String? = null): MdocRequest
Convert to a MdocRequest.
Return
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.
requesterOrigin
the origin or null.
Throws
if this is accessed before DeviceRequest.verifyReaderAuthentication is called.