ReceiveDocument

class ReceiveDocument @Inject constructor(wallet: WalletHandle, openId4VciManagerHandle: OpenId4VciManagerHandle)

High-level helper for receiving and accepting OpenID4VCI credential offers.

Public API surface:

This class wraps the underlying OpenId4VciManager and wallet into two main operations:

  1. receiveOffer – resolve a credential offer URI and return the Offer so the UI can inspect issuer, types, etc.

  2. acceptOffer – given the same offer URI, try to issue one of the offered document types and return an IssuedCredentialSummary for the first success.

Error conditions are modeled via ReceiveDocumentError so host apps can provide stable UX without depending on EUDI error types.

Constructors

Link copied to clipboard
@Inject
constructor(wallet: WalletHandle, openId4VciManagerHandle: OpenId4VciManagerHandle)

Functions

Link copied to clipboard

Accept a previously received offer and issue a credential.

Link copied to clipboard

Build an IssuedCredentialSummary from an SD-JWT VC string.

Link copied to clipboard
suspend fun receive(uriOffer: String): IssuedCredentialSummary

Legacy combined operation: resolve + issue.

Link copied to clipboard
suspend fun receiveOffer(uriOffer: String): Offer

Resolve a credential offer URI into an Offer.