ExchangeServices

Factory functions for creating ExchangeService instances.

Provides multiple ways to create services:

  • With custom registry

  • With explicit protocols

  • With auto-discovery

Similar to CredentialServices factory pattern.

Functions

Link copied to clipboard
fun createExchangeService(credentialService: CredentialService, didResolver: DidResolver, vararg protocols: CredentialExchangeProtocol): ExchangeService

Create an ExchangeService with explicit protocols.

fun createExchangeService(protocolRegistry: ExchangeProtocolRegistry, credentialService: CredentialService, didResolver: DidResolver): ExchangeService

Create an ExchangeService with a custom protocol registry.

Link copied to clipboard
fun createExchangeServiceWithAutoDiscovery(credentialService: CredentialService, didResolver: DidResolver, options: Map<String, Any?> = emptyMap()): ExchangeService

Create an ExchangeService with auto-discovery of all protocols.

fun createExchangeServiceWithAutoDiscovery(credentialService: CredentialService, didResolver: DidResolver, protocols: List<ExchangeProtocolName>, options: Map<String, Any?> = emptyMap()): ExchangeService

Create an ExchangeService with auto-discovery for specific protocols.