register
abstract suspend fun register(documentStore: DocumentStore, documentTypeRepository: DocumentTypeRepository, selectedProtocols: Set<String> = supportedProtocols, forceRegistration: Boolean = false)
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.
forceRegistration
if true, forces registration with the platform even if no changes are detected locally since the previous registration. Defaults to false.
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).