aries / net.globalid.aries.configuration.mediator / DefaultMediatorService

DefaultMediatorService

class DefaultMediatorService : MediatorService

Used to define agent mediator configuration that contains needed configuration data to connect a mediator to agent.

Constructors

<init>

Used to define agent mediator configuration that contains needed configuration data to connect a mediator to agent.

DefaultMediatorService(walletStorageManager: WalletStorageManager)

Functions

getMediatorConnection

See MediatorService.getMediatorConnection.

fun <T : MediatorRecord> getMediatorConnection(classType: Class<T>, agent: Agent, connectionService: ConnectionService): Single<ConnectionRecord>

getMediatorRecord

See MediatorService.getMediatorRecord.

fun <T : MediatorRecord> getMediatorRecord(classType: Class<T>, agent: Agent): Single<T>

setMediatorRecord

See MediatorService.setMediatorRecord.

fun <T : MediatorRecord> setMediatorRecord(agent: Agent, mediatorRecord: T): Completable

Extension Functions

getMediatorConnection

Extension method for using MediatorService.getMediatorConnection to reduce boilerplate code in kotlin.

fun <T : MediatorRecord> MediatorService.getMediatorConnection(agent: Agent, connectionService: ConnectionService): Single<ConnectionRecord>

getMediatorRecord

Extension method for using MediatorService.getMediatorRecord to reduce boilerplate code in kotlin.

fun <T : MediatorRecord> MediatorService.getMediatorRecord(agent: Agent): Single<T>