register
abstract suspend fun register(documentStore: DocumentStore, documentTypeRepository: DocumentTypeRepository, selectedProtocols: Set<String> = supportedProtocols)
Registers all documents in documentStore and removes registrations for previously registered documents no longer in documentStore.
Parameters
documentStore
the DocumentStore to export credentials from.
documentTypeRepository
selectedProtocols
the set of selected W3C protocols, must be a subset of supportedProtocols.
Throws
if selectedProtocols isn't a subset of supportedProtocols
if an error occurs during registration.
if not implemented by the platform (e.g. if registerAvailable is false).