Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CredentialIdentifierInfo(    val issuerMetadata: IssuerMetadata,     val credentialIdentifier: String,     val supportedCredentialFormat: SupportedCredentialFormat)

Gets parsed from the credential issuer's metadata, essentially an entry from IssuerMetadata.supportedCredentialConfigurations

Link copied to clipboard
class OpenId4VciClient(    openUrlExternally: suspend (String) -> Unit,     engine: HttpClientEngine,     cookiesStorage: CookiesStorage? = null,     httpClientConfig: HttpClientConfig<*>.() -> Unit? = null,     storeProvisioningContext: suspend (ProvisioningContext) -> Unit,     loadProvisioningContext: suspend () -> ProvisioningContext?,     loadClientAttestationJwt: suspend () -> String,     clientAttestationJwsService: JwsService = DefaultJwsService(DefaultCryptoService(EphemeralKeyWithoutCert())),     dpopJwsService: JwsService = DefaultJwsService(DefaultCryptoService(EphemeralKeyWithoutCert())),     val oid4vciService: WalletService = WalletService(),     storeCredential: suspend (Holder.StoreCredentialInput) -> Unit,     storeRefreshToken: suspend (RefreshTokenInfo) -> Unit)

Implements the client side of OpenID for Verifiable Credential Issuance

Link copied to clipboard
@Serializable
data class OpenId4VpSuccess(val redirectUri: String)
Link copied to clipboard
class OpenId4VpWallet(    openUrlExternally: suspend (String) -> Unit,     engine: HttpClientEngine,     httpClientConfig: HttpClientConfig<*>.() -> Unit? = null,     cryptoService: CryptoService,     holderAgent: HolderAgent)
Link copied to clipboard
@Serializable
data class ProvisioningContext(    val state: String,     val credential: CredentialIdentifierInfo,     val oauthMetadata: OAuth2AuthorizationServerMetadata,     val issuerMetadata: IssuerMetadata)

Gets stored before jumping into the web browser (with the authorization request), so that we can load it back when we resume the issuing process with the auth code

Link copied to clipboard
@Serializable
data class RefreshTokenInfo(    val refreshToken: String,     val issuerMetadata: IssuerMetadata,     val oauthMetadata: OAuth2AuthorizationServerMetadata,     val credentialFormat: SupportedCredentialFormat,     val credentialIdentifier: String)

Holds all information needed to refresh a credential, pass it to OpenId4VciClient.refreshCredential.