CredentialOffer

data class CredentialOffer(val credentialIssuer: String, val credentialConfigurationIds: List<String>, val credentialOfferUri: String? = null, val rawUrl: String, val grantsJson: String? = null) : QrCodeContent

OIDC4VCI credential offer.

Constructors

Link copied to clipboard
constructor(credentialIssuer: String, credentialConfigurationIds: List<String>, credentialOfferUri: String? = null, rawUrl: String, grantsJson: String? = null)

Properties

Link copied to clipboard

The offered credential configuration ids.

Link copied to clipboard

The credential issuer URL. Can be empty when the offer is by-reference (credentialOfferUri is set) and the offer JSON has not been fetched yet.

Link copied to clipboard

Offer-by-reference URI; the caller fetches the offer JSON from it.

Link copied to clipboard

Raw JSON of the offer's grants object (OID4VCI v1.0 §4.1.1), when the offer was carried by value in a credential_offer parameter. null for legacy/by-reference offers. Carries e.g. the pre-authorized code grant and tx_code requirements.

Link copied to clipboard

The original QR code URL.