ProvisioningModel

constructor(documentStore: DocumentStore, secureArea: SecureArea, httpClient: HttpClient, promptModel: PromptModel, metadataHandler: ProvisioningModel.AbstractDocumentMetadataHandler = DocumentMetadataHandler())

Parameters

documentStore

new Document will be created in this DocumentStore

secureArea

Credential objects will be bound to this SecureArea

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

metadataHandler

interface that initializes and updates document metadata; it must be provided if DocumentStore uses custom implementation for AbstractDocumentMetadata (i.e. not DocumentMetadata).