parse
Parses the device response.
If the response is using MAC for device authentication, setEphemeralReaderKey must also have been called to set the reader key.
This parser will successfully parse responses where issuer-signed data elements fails the digest check against the MSO, where DeviceSigned
authentication checks fail, and where IssuerSigned
authentication checks fail. The methods Document.getIssuerEntryDigestMatch, Document.deviceSignedAuthenticated, and Document.issuerSignedAuthenticated can be used to get additional information about this.
Return
a DeviceResponseParser.DeviceResponse with the parsed data.
Throws
if the given data isn't valid CBOR or not conforming to the CDDL for its type.
if required data hasn't been set using the setter methods on this class.