aries / net.globalid.aries.configuration.mediator / MediatorService

MediatorService

interface MediatorService

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

Functions

getMediatorConnection

Returns the connection record which is connected to mediator of agent.

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

getMediatorRecord

Returns the agent mediator record. This is a single MediatorRecord that contains all mediator configuration parameters.

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

setMediatorRecord

Saves the given mediator record in the agent's wallet.

abstract 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>

Inheritors

DefaultMediatorService

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

class DefaultMediatorService : MediatorService