createExchangeServiceWithAutoDiscovery
fun createExchangeServiceWithAutoDiscovery(credentialService: CredentialService, didResolver: DidResolver, options: Map<String, Any?> = emptyMap()): ExchangeService
Create an ExchangeService with auto-discovery of all protocols.
Automatically discovers and registers all CredentialExchangeProtocol implementations found on the classpath via Java ServiceLoader.
Example:
val service = ExchangeServices.createExchangeServiceWithAutoDiscovery(
credentialService = credentialService,
didResolver = didResolver
)Content copied to clipboard
fun createExchangeServiceWithAutoDiscovery(credentialService: CredentialService, didResolver: DidResolver, protocols: List<ExchangeProtocolName>, options: Map<String, Any?> = emptyMap()): ExchangeService
Create an ExchangeService with auto-discovery for specific protocols.
Example:
val service = ExchangeServices.createExchangeServiceWithAutoDiscovery(
credentialService = credentialService,
didResolver = didResolver,
protocols = listOf(ExchangeProtocolName.DidComm, ExchangeProtocolName.Oidc4Vci)
)Content copied to clipboard