mdocClaims

Decoded claims of this mso_mdoc document as SDK-native MdocClaims, or an empty list when this is not an mdoc.

Image detection. The EUDI/mdoc data model is CBOR and there is no dedicated "is this an image" API: the document manager decodes a CBOR byte string (e.g. the ISO 18013-5 portrait, a JPEG/JPEG2000) to a Base64-URL string, indistinguishable by type from a normal text claim. We therefore detect images by content: Base64-decoding the value and sniffing the magic bytes (JPEG/PNG/JPEG2000). Matches expose their bytes via MdocClaim.imageBytes; everything else is rendered to MdocClaim.value.