request Mobile Credentials
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
An array of requests represented as instances of MobileCredentialRequest
: defines whether revocation status check should be skipped. By default it is set to false
and status check will be performed. Network requests may be performed to check revocation status.
Throws
If an unsupported cryptographic curve is used.
If the DeviceRequeste validation fails.
If encoding the DeviceRequeste to bytes fails.
If a request is made on a terminated session.
If a request is already in progress.
If SessionEncryption fails.
If SessionDecryption fails.
If sending the request fails.