createExchangeService
fun createExchangeService(protocolRegistry: ExchangeProtocolRegistry, credentialService: CredentialService, didResolver: DidResolver): ExchangeService
Create an ExchangeService with a custom protocol registry.
Use this when you need fine-grained control over protocol registration.
Example:
val registry = ExchangeProtocolRegistries.default()
registry.register(didCommProtocol)
registry.register(oidc4vciProtocol)
val service = ExchangeServices.createExchangeService(
registry = registry,
credentialService = credentialService,
didResolver = didResolver
)Content copied to clipboard
fun createExchangeService(credentialService: CredentialService, didResolver: DidResolver, vararg protocols: CredentialExchangeProtocol): ExchangeService
Create an ExchangeService with explicit protocols.
Creates a default registry internally and registers the provided protocols.
Example:
val service = ExchangeServices.createExchangeService(
credentialService = credentialService,
didResolver = didResolver,
didCommProtocol,
oidc4vciProtocol
)Content copied to clipboard