PresentmentData

data class PresentmentData(val useCases: List<PresentmentUseCase>)

Data for credential presentment.

This object contains the result of executing a credential query against a PresentmentSource, organized by use-case and solution so it's easy to display in a user interface.

Constructors

Link copied to clipboard
constructor(useCases: List<PresentmentUseCase>)

Properties

Link copied to clipboard

the use-cases in the transaction, contains at least one.

Functions

Link copied to clipboard
fun defaultSelections(preselectedDocuments: List<Document> = emptyList()): List<List<Int>>

Returns the default selection of solution indices for each use-case.

Link copied to clipboard

Gets all possible selections.

Link copied to clipboard
fun select(preselectedDocuments: List<Document>): PresentmentSelection

Selects a particular combination of credentials to present.

Link copied to clipboard

Calculates a PresentmentSelection from a list of selections.