select

fun select(preselectedDocuments: List<Document>): PresentmentSelection

Selects a particular combination of credentials to present.

If preselectedDocuments is empty, this picks the first solution for each use-case (or all compatible solutions from the first option if PresentmentUseCase.allowMultiple is true).

Otherwise, if preselectedDocuments is not empty, the solutions are selected such that the list of returned credentials match the documents in preselectedDocuments. If this isn't possible, the selection returned will be the same as if preselectedDocuments was the empty list.

Return

a PresentmentSelection.

Parameters

preselectedDocuments

either empty or a list of documents the user already selected.