parse

Parses the device request.

This parser will successfully parse requests where the request is signed by the reader but the signature check fails. The method DocRequest.readerAuthenticated can used to get additional information whether ItemsRequest was authenticated.

A GeneralSecurityException may be thrown if there issues within the default security provider. Use setSkipReaderAuthParseAndCheck to skip some usage of security provider in reader auth parsing.

Return

a DeviceRequestParser.DeviceRequest 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.