importMpzPass
Imports a MpzPass into a DocumentStore.
The returned document will have the Document.provisioned flag set to true, Document.mpzPassId, Document.mpzPassVersion, and Document.mpzPassMetadata will be set to MpzPass.uniqueId, MpzPass.version, and MpzPass.metadata, and Document.readerIdentifiers will be set to MpzPass.readerIdentifiers.
If the pass had been previously imported at an earlier version, the same Document will be returned and the credentials, metadata, reader identifiers, and Document.mpzPassVersion will be updated. If the pass is already imported at the same or later version, ImportMpzPassException will be thrown.
Return
An existing Document if updating, otherwise a newly created Document. In both cases the returned document will have the credentials included in mpzPass.
Parameters
The MpzPass to import.
The domain string to use when creating key-bound ISO mdoc credentials.
The domain string to use when creating key-bound SD-JWT VC credentials.
the domain string to use when creating keyless SD-JWT VC credentials.
the domain string to use when creating keyless ISO mdoc credentials.
Throws
if a SoftwareSecureArea implementation cannot be found in the repository.
if credential creation or certification fails or if the pass already exists in the store at the given version.