select

abstract fun select(preselectedDocuments: List<Document>): CredentialPresentmentSelection

Selects a particular combination of credentials to select.

If preselectedDocuments is empty, this picks the first option, member, and match.

Otherwise if preselectedDocuments is not empty, the options, members, and matches 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 CredentialPresentmentSelection.

Parameters

preselectedDocuments

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