MdocUtil
Utilities for working with mdoc data structures.
On the issuance-side, generateIssuerNameSpaces and stripIssuerNameSpaces can be used with org.multipaz.mdoc.mso.MobileSecurityObjectGenerator and calculateDigestsForNameSpace can be used to prepare PII and multiple static authentication data packages (each including signed MSOs).
On the device-side, mergeIssuerNamesSpaces can be used to generate the DeviceResponse
CBOR from the above-mentioned PII and static authentication data packages.
Functions
Helper function to generate a DocumentRequest.
Generates a Document Signing certificate according to ISO/IEC 18013-5:2021 Annex B.1.4.
Generates a self-signed IACA certificate according to ISO/IEC 18013-5:2021 Annex B.1.2.
Generates a reader auth certificate according to ISO/IEC 18013-5:2021 Annex B.1.7.
Generates a self-signed reader root certificate.
Helper function to generate a list of claims for an mdoc.
Combines document data with static authentication data for a given request.