createProviderFor

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

Gets a provider instance that supports a specific algorithm.

Return

Provider instance if found, null otherwise

Parameters

algorithm

The algorithm to find a provider for

preferredProvider

Optional preferred provider name

options

Options to pass to provider.create()