Attestations

The public interface to everything related to attestation. See GetAttestations, GetAttestationById and CredentialOffer for details on the provided functionality.

Properties

Link copied to clipboard
abstract val attestations: Flow<List<Attestation>>

Provides a List of saved Attestations as Flow. The Flow is updated when a new Attestation is saved.

Functions

Link copied to clipboard
abstract fun continueWithAuthCodeUrl(authCodeUrl: String): Flow<CredentialDownloadEvent>

Second part of the process of downloading and saving credentials. Returns events and errors through the process of downloading and saving an previously offered com.youniqx.walletsdk.attestation.Attestation. After an external authorization via an URL returned in CredentialOfferEvent.OpenUrlForAuthEvent is finished, a URL containing an authorization token should be handed as deeplink to the app, see App Configuration for details.

Link copied to clipboard
abstract fun getAttestation(attestationId: String): Flow<Attestation?>

Get a single attestation by its id.

Link copied to clipboard
abstract fun retrieveFromCredentialOffer(credentialOfferIntentData: String): Flow<CredentialOfferEvent>

Start of the process of downloading and saving credentials. Returns events and errors through the process of offering an com.youniqx.walletsdk.attestation.Attestation for download to the app.