DeferredCredential

@Serializable
data class DeferredCredential(val id: String, val credentialIssuer: String, val configurationID: String, val intervalSeconds: Double, val deferredAt: Instant, val accessTokenExpiresAt: Instant? = null)(source)

A credential an issuer will issue later (OpenID4VCI 1.0 §9). It's kept in the credential store until it's issued, denied or abandoned, so it survives the app quitting.

Constructors

Link copied to clipboard
constructor(id: String, credentialIssuer: String, configurationID: String, intervalSeconds: Double, deferredAt: Instant, accessTokenExpiresAt: Instant? = null)

Properties

Link copied to clipboard
@SerialName(value = "access_token_expires_at")
@Serializable(with = InstantSerializer::class)
val accessTokenExpiresAt: Instant?

When the access token it's polled with expires, if the issuer said: after it, polls fail and it can only be abandoned.

Link copied to clipboard
@SerialName(value = "configuration_id")
val configurationID: String

The issuer's credential configuration requested.

Link copied to clipboard
@SerialName(value = "credential_issuer")
val credentialIssuer: String

The issuer's identifier, an https URL.

Link copied to clipboard
@SerialName(value = "deferred_at")
@Serializable(with = InstantSerializer::class)
val deferredAt: Instant

When the issuer deferred it.

Link copied to clipboard
val id: String

The deferred credential's ID, for Wallet.pollDeferred.

Link copied to clipboard
@SerialName(value = "interval_seconds")
val intervalSeconds: Double

How long the issuer asked the wallet to wait between polls.