Receive Document
High-level helper for receiving and accepting OpenID4VCI credential offers.
Public API surface:
Uses only SDK types: WalletHandle, OpenId4VciManagerHandle, IssuedCredentialSummary, and ReceiveDocumentError.
All
eu.europa.ec.eudi.*types are kept internal to the SDK implementation.
This class wraps the underlying OpenId4VciManager and wallet into two main operations:
receiveOffer – resolve a credential offer URI and return the Offer so the UI can inspect issuer, types, etc.
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.
Functions
Accept a previously received offer and issue a credential.
Fetch the issuer's advertised credential configurations (credential_configurations_supported) as SDK-native SupportedCredentials.
Issue a credential directly by its credential configuration identifier, without a credential offer.
Issue several credential configurations in a single authorization-code flow (one browser round-trip). Use this to issue the PID in both formats at once (e.g. an mso_mdoc and a vc+sd-jwt configuration).
Build an IssuedCredentialSummary from an SD-JWT VC string.
Legacy combined operation: resolve + issue.
Resolve a credential offer URI into an Offer.
Resolve an offer URI and report whether it requires a transaction code.