create

Creates a KeyManagementService instance for the specified provider.

Instances are cached based on provider name and configuration. Calling this method multiple times with the same provider and configuration will return the same cached instance.

Return

KeyManagementService instance (cached if previously created)

Parameters

providerName

The provider name (e.g., "aws", "azure", "waltid")

options

Typed configuration options

Throws

if provider is not found


fun create(providerName: String, options: Map<String, Any?> = emptyMap()): KeyManagementService

Creates a KeyManagementService instance for the specified provider (Map-based).

Instances are cached based on provider name and configuration. Calling this method multiple times with the same provider and configuration will return the same cached instance.

Return

KeyManagementService instance (cached if previously created)

Parameters

providerName

The provider name (e.g., "aws", "azure", "waltid")

options

Map-based configuration options

Throws

if provider is not found