DeviceResponse
Top-level device response in ISO 18013-5.
To construct an instance use buildDeviceResponse.
For a response received from a remote mdoc use DeviceResponse.Companion.fromDataItem. Note that you have to manually call verify before accessing the documents field for instances created this way.
Types
A builder for DeviceResponse.
Properties
a list of returned errors.
a list of returned and verified documents.
a list of returned encrypted documents.
a list of returned documents in other formats, such as SD-JWT VC.
the status field containing for example STATUS_OK or STATUS_GENERAL_ERROR.
a list of returned documents with ZKP.
Functions
Generates CBOR compliant with the CDDL for DeviceResponse according to ISO 18013-5.
Verifies the integrity of the returned documents, according to ISO/IEC 18013-5.
Variant of verify that is intended for use with DeviceResponse data embedded in non-ISO/IEC-18013 verification response (such as OpenID4VP).