storeIssuedDocument

abstract suspend fun storeIssuedDocument(unsignedDocument: UnsignedDocumentHandle, rawSdJwtVc: String): IssuedDocumentHandle

Stores a newly issued SD-JWT VC into a previously created unsigned document.

This finalizes the issuance flow:

  1. OpenID4VCI returns a raw SD-JWT VC string

  2. The app passes it here together with the UnsignedDocumentHandle

  3. The wallet binds the SD-JWT to the PoP keys created earlier (publicKeyAlias)

  4. The stored entry becomes a full IssuedDocumentHandle

Typical usage:

val unsigned = documentManager.createSdJwtDocument("my.vct")
val issued = documentManager.storeIssuedDocument(unsigned, rawSdJwt)

Return

An IssuedDocumentHandle containing final stored metadata.

Parameters

unsignedDocument

The placeholder returned by createSdJwtDocument.

rawSdJwtVc

The raw SD-JWT VC string returned by the issuer.