create

fun create(providerName: String, options: KmsCreationOptions): String

Creates a cache key from provider name and configuration options.

Return

Cache key string

Parameters

providerName

The provider name

options

Typed configuration options


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

Creates a cache key from provider name and map configuration.

The key is based on a sorted, normalized representation of the configuration to ensure that equivalent configurations produce the same key.

The normalized configuration is hashed (SHA-256, hex) before being embedded in the key so that secret option values (credentials, tokens, passwords) are never retained in plain text by the instance cache. The provider name is kept as a readable prefix for debugging.

Return

Cache key string of the form provider:<sha256-hex>

Parameters

providerName

The provider name

options

Map configuration options