IssuedDocumentHandle

High–level stable representation of a stored credential/document.

Backed by EUDI IssuedDocument, but exposes only stable and safe-to-use properties for apps:

  • document id

  • display name / issuer name

  • SD-JWT VC payload

  • optional VCT type metadata

  • optional rendered SVG card templates with claim placeholders resolved

  • signing using holder key

More structured parsing (e.g. credentialSubject.name) is handled at the app layer or via helpers such as vcValue.

When com.dewa.walletsdk.WalletSdkOptions.trustedTypeMetadataRegistries is configured, the SDK attempts to enrich issued documents with VCT metadata and localized rendering templates. This enrichment is optional and cached by the SDK, so metadata and renderingBundle may be null if no metadata registry is configured, the credential type has no metadata, or remote fetching failed.

Properties

Link copied to clipboard
val credentialSubjectJson: JsonObject?
Link copied to clipboard
val data: SdJwtVcData?

Strongly-typed SD-JWT VC data when applicable.

Link copied to clipboard

Human-readable name resolved from issuer metadata or format.

Link copied to clipboard

Raw document format name (e.g. "SdJwtVcFormat(ES256, ...)").

Link copied to clipboard
val id: String

Unique document ID inside the wallet database.

Link copied to clipboard

Issuer display name (falls back to "Unknown issuer").

Link copied to clipboard

Optional VCT metadata fetched from a trusted type metadata registry.

Link copied to clipboard
val recreatedClaims: JsonObject?
Link copied to clipboard

Optional localized SVG templates with placeholders already replaced from the reconstructed SD-JWT VC claims.

Link copied to clipboard

Raw SD-JWT VC string, if available.

Link copied to clipboard
val vcJson: JsonObject?
Link copied to clipboard
val vct: String?

VCT when this document is an SD-JWT VC. Useful for registry lookups or filtering.

Functions

Link copied to clipboard

Checks whether this document belongs to a specific VCT.

Link copied to clipboard
suspend fun credSdJwt(): String
Link copied to clipboard
suspend fun getCredentials(): SecureAreaBoundCredential

Retrieves the wallet-bound credential associated with this document.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getRemainingUses(): Int
Link copied to clipboard
suspend fun sign(dataToSign: ByteArray, unlockReason: Reason = Reason.Unspecified): EcSignature
Link copied to clipboard
suspend fun signConsumingCredential(signingInput: ByteArray): EcSignature

Signs arbitrary input using the consuming credential key.