aries / net.globalid.aries.version / VersionManager

VersionManager

interface VersionManager

A manager for VersionRecord.

Functions

checkVersion

Checks for a version record in the wallet. If it does not exist, creates one.

abstract fun checkVersion(wallet: Wallet): Completable

getVersion

Returns the version record from the agent's wallet.

abstract fun getVersion(agent: Agent): Single<VersionRecord>

setVersion

Stores the version record in the wallet.

abstract fun setVersion(wallet: Wallet): Single<VersionRecord>

updateVersion

Updates the version record in the wallet.

abstract fun updateVersion(wallet: Wallet, record: VersionRecord): Completable

Inheritors

DefaultVersionManager

class DefaultVersionManager : VersionManager