AttestationSelectionEvent

data class AttestationSelectionEvent(val attestations: List<Attestation>, val result: CompletableDeferred<String>) : PresentationEvent

Event received after a presentation process is started and InfoEvent.result is completed. Contains a list of saved Attestations matching the requested credentials. The CompletableDeferred result has to be completed with either the list of selected Attestation.ids to be sent to the relying party or an empty list if no Attestation is to be sent for the flow to continue. See com.youniqx.walletsdk.presentation.Presentation.presentWith for a usage example.

Constructors

Link copied to clipboard
constructor(attestations: List<Attestation>, result: CompletableDeferred<String>)

Properties

Link copied to clipboard

A list of saved Attestations matching the requested credentials.

Link copied to clipboard
val result: CompletableDeferred<String>

A CompletableDeferred result which has to be completed with either the list of selected Attestation.ids to be sent to the relying party or an empty list if no Attestation is to be sent.