requestMobileCredentials

suspend fun requestMobileCredentials(request: List<<Error class: unknown class>>): <Error class: unknown class>

This function uses the requested mobile credentials to construct and send a presentation request to the holder.

If the request is not valid, an error will be thrown. Once the request has been sent, a response is expected. According to ISO 18013-5 specifications, if no response is received after 300 seconds the request will timeout and an error will be thrown. The session will not be terminated so a new request can be sent. When the response is received, it will be decoded and returned. As per ISO 18013-5 specifications, a response and sessionTermination status code can be received in the same response from the holder. In this scenario the method will return the response, trigger the "onSessionTerminated" callback and close the data transport session.

Return

The response as received from the holder as an instance of MobileCredentialResponse

Parameters

request

An array of requests represented as instances of MobileCredentialRequest

Throws

DeviceRequestValidationFailedException
DeviceRequestEncodingFailedException
RequestMobileCredentialOnTerminatedSessionException
RequestAlreadyInProgressException
SessionEncryptionException
MobileCredentialResponseNotFoundException
SessionDecryptionException
MobileCredentialResponseDecodingException
MobileCredentialVerificationException
SendRequestException