AlgorithmDiscovery

Utility for discovering algorithm support across KMS providers.

Example Usage:

// Discover all providers and their algorithms
val providers = AlgorithmDiscovery.discoverProviders()

// Find providers that support Ed25519
val ed25519Providers = AlgorithmDiscovery.findProvidersFor(Algorithm.Ed25519)

// Find and create best provider
val kms = AlgorithmDiscovery.createProviderFor(Algorithm.Ed25519, "waltid")

Functions

Link copied to clipboard
fun createProviderFor(algorithm: Algorithm, preferredProvider: String? = null, options: Map<String, Any?> = emptyMap()): KeyManagementService?

Gets a provider instance that supports a specific algorithm.

Link copied to clipboard

Discovers all available KMS providers and their supported algorithms.

Link copied to clipboard
fun findBestProviderFor(algorithm: Algorithm, preferredProvider: String? = null): String?

Gets the best provider for a given algorithm.

Link copied to clipboard
fun findProvidersFor(algorithmName: String): List<String>

Finds all providers that support an algorithm by name.

Finds all providers that support a specific algorithm.