ProvisioningModel

constructor(documentProvisioningHandler: AbstractDocumentProvisioningHandler, httpClient: HttpClient, promptModel: PromptModel, authorizationSecureArea: SecureArea)

Parameters

documentProvisioningHandler

object that manages document and credential creation, e.g. DocumentProvisioningHandler.

httpClient

HTTP client used to communicate to the provisioning server, it MUST NOT handle redirects automatically

promptModel

PromptModel that is used to show prompts to generate proof-of-possession for credential keys

authorizationSecureArea

secure area that is used to store session authorization keys during provisioning; when credentials are refreshed, it is important that the SecureArea used during refresh is the same that was used during the initial provisioning