SupportedCredential

data class SupportedCredential(val configurationId: String, val format: SupportedCredential.Format, val docType: String?, val vct: String?, val scope: String?)

A credential configuration advertised by an issuer's metadata (credential_configurations_supported), mapped to an SDK-native type.

Use com.dewa.walletsdk.api.oidc.oidc4vci.ReceiveDocument.getSupportedCredentials to discover these at runtime — e.g. to find the PID's configurationId without hardcoding it, then pass it to com.dewa.walletsdk.api.oidc.oidc4vci.ReceiveDocument.issueByConfigurationId.

Constructors

Link copied to clipboard
constructor(configurationId: String, format: SupportedCredential.Format, docType: String?, vct: String?, scope: String?)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The credential configuration identifier (the map key in the issuer metadata) to pass to issuance.

Link copied to clipboard

The mdoc docType (e.g. eu.europa.ec.eudi.pid.1), or null.

Link copied to clipboard

The credential format.

Link copied to clipboard

Heuristic: is this a Person Identification Document? True when any of the identifying strings mentions "pid" (e.g. docType eu.europa.ec.eudi.pid.1).

Link copied to clipboard

The OAuth scope advertised for this configuration, or null.

Link copied to clipboard
val vct: String?

The SD-JWT VC type, or null.