ConsentPromptRequest

class ConsentPromptRequest(val requester: Requester, val trustedRequesterIdentity: TrustedRequesterIdentity?, val consentData: ConsentData, val preselectedDocuments: List<Document>, val onDocumentsInFocus: (documents: List<Document>) -> Unit)

Class that holds parameters that are needed to present a consent prompt dialog to the user.

Parameters

requester

the relying party which is requesting the data.

trustedRequesterIdentity

conveys the level of trust in the requester, if any.

consentData

the combinations of credentials and claims that the user can select.

preselectedDocuments

a list of documents the user may have preselected earlier (for example an OS-provided credential picker like Android's Credential Manager) or the empty list if the user didn't preselect.

onDocumentsInFocus

called with the documents currently selected for the user, including when first shown. If the user selects a different set of documents in the prompt, this will be called again.

Constructors

Link copied to clipboard
constructor(requester: Requester, trustedRequesterIdentity: TrustedRequesterIdentity?, consentData: ConsentData, preselectedDocuments: List<Document>, onDocumentsInFocus: (documents: List<Document>) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
val onDocumentsInFocus: (documents: List<Document>) -> Unit
Link copied to clipboard
Link copied to clipboard